find if two rectangles overlap