Added C code for moving the ball around the screen.