make the ball move with respect to the refresh rate.