finished work on checking overlaps of Rectangles