adding the ball movement