If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
Use the cannon to launch the pirate through the air and try to get as far as you can. The farther you go the more money you’ll earn. Spend your money on upgrades to be able to do even better the next launch. It’s important to keep the pirate ship balanced when it skids along the surface, or you’ll sink like a brick.