Searching method for 4 rects