def intersects(left, right):
    """
    Returns true if two rectangles overlap
    """
    (xl, yl, wl, hl) = left
    (xr, yr, wr, hr) = right
    return not ((xl + wl) < xr or xl > (xr + wr) or yl > (yr + hr) or (yl + hl) < yr)