Improved collision detection for the ball and paddle.