Changed rectangle to start in the lower left and move clockwise around the rectangle.