How is the cupcake game played?

Grid Setup: A 4x4 grid is used for the game, and there is a cupcake with a number on each tile.
Combining Cupcakes: To move every cupcake on the grid, swipe 2048 CupCakes in the following directions: up, down, left, and right. A new cupcake with the total of the two numbers is created when two cupcakes with the same number collide due to a swipe.
The major objective is to get to the highest-numbered cupcake tile, which is usually"2048," or any other predefined destination. This is accomplished by carefully combining cupcakes in the same quantity.
When there are no more legal moves—that is, no empty spaces or cupcakes that can combine—the game is declared over.