Complete undo and new game function