The player is always on the move. So you have to steer him in the right direction. Run from the ball to win! The ball is also always on the move.
Got this from the question of the week at my coding class. This has more bugs then there are on the beach. Just fixed a bug where the player could not win even if they touched the ball. Made it so player doesn't flip upside down when they hit an edge. Now retitled to "Run from ball" because catching it was too easy.