Just move your cursor to move around the paddle. If the ball touches the edge, you lose.
For a coding class project