Now if all tiles are full, the game is automatically lost. Change that to check if there is a possible move to be made (e.g. 2 contiguous tiles with the same value), in that case it is not lost as a move can be made. Game should be lost only when no moves can be made, and all tiles are full.
Done. Added a function to check if any moves are possible. If not possible, then the game is finished. If there are empty tiles, the function returns True (e.g. there are moves possible).
Now if all tiles are full, the game is automatically lost. Change that to check if there is a possible move to be made (e.g. 2 contiguous tiles with the same value), in that case it is not lost as a move can be made. Game should be lost only when no moves can be made, and all tiles are full.