Use the arrow to direct the ball.
From Code Your Own Games by Max Wainwright. This is a template for my students to create the Tower Smash game.