Don't let the ball touch the red.
This project isn't mine. All I did was add a more reliable physics engine. The game was made by meep111.