The undo functionality is not working correctly. Old moves are not properly removed, and the board state is not consistently restored. Undo can also be triggered when no moves have been made, leading to the appearance of a state from a different game.
The undo functionality is not working correctly. Old moves are not properly removed, and the board state is not consistently restored. Undo can also be triggered when no moves have been made, leading to the appearance of a state from a different game.