Stop the ball at the right time