disable undo when game is over