Updated clear_lines function.
Fixed pivot_distance function.
Fixed move_to function.
Small refactor in step function.