Usual physics game antics. Tapping adds a random force to the player, hopefully hitting the ball. box2d does the rest.