Will stop if not
check_step_type(step_type)
step_type
when between two points, where the second point has both a higher x and y coordinat, which y coordinat to follow. 'step_type' can be:
lower maintain the y-coordinat of the leftmost point
upper already use the y-coordinat of the rightmost point