If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
This is one of those high quality match-three games. You need to switch positions of adjacent items to form lines of 3 or more identical ones. Your goal is each level is to eliminate all items that have a gem inside. You can shop for upgrades between levels.