update the game reset state and add velocity to stop the ball
update use of velocity
revise loop parameter names