fully implemented tilt_line_left function