bugfix: safety against breaking the AI if you press undo while it's thinking