You need to move the paddle to so that the ball doesn't touch the red line. If it touches the red line, you will die atuomatically.
Give credits to my I.C.T teacher for teaching me how to make fun games easily like this one.