If you want to win the game you need to collect each 3 of jewels by moving the closest jewel. You win the game when the whole background comes golden. Each new square comes golden when you collect 3 or more units in a row on it.