Fixed UNDO button action to properly remove the 'game over' modal