added a way to make the robot slow down when its about to stop driveing