Fixed isoRectangle iterating when x is greater than final x