Stopping and changing direction of motion