Your intention should be to merge as many identical cupcakes as possible to reduce the total number of cupcakes on the grid because the game will end if the grid is full of cupcakes and no possible move is left.
If you move the cupcakes by mistake, you can press the Undo button to go to the previous state. The game state will remain the same even if you reload the webpage.
First of all, try to merge the smaller cupcakes and then focus on the bigger ones. Try to join as many cupcakes as possible. But, if you don’t have a perfect plan and move the cupcakes in random directions to score high, then it is definite that you won’t be able to win the game. You have to be patient and aware of the future moves.
As a beginner, you may fail to score high. But as soon as you understand how the game works, you’ll start to love the game.