Return true if a rectangle overlaps this rectangle.

def overlaps(self, other):
        """
        Return true if a rectangle overlaps this rectangle.
        """
        return (
            self.right > other.left and
            self.left < other.right and
            self.top < other.bottom and
            self.bottom > other.top
        )