This is designed to complete the curve if the while loop doesn't fall on x0 == x2 and y0 == y2.