changed calculation of friction and rotation of the ball