Python How To Fix Infinite Loop From Overlapping Rectangles Stack

Python How To Fix Infinite Loop From Overlapping Rectangles Stack