If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
Click on the rock, paper, or scissors icon to determine who will attack: you or the enemy. After winning a rock-paper-scissors match, select a combat skill from the control panel. Empty the enemy's green health bar to win the battle! Between battles, use your points to stock up on items to help you in the next battle.