try to keep the ball away from the red line The paddle's x value will be equal to your mouse's x value