Fix synchronization problems in modifying and displaying the game.