If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
Every level you need to collect the coins on the stage. Every coin gives you 10 points. Power coins give pacman the ability to eat evil pacs. You need to kill the enemy by using guns or eating them.