This commit has working AI, where instead of regenerating maps, it undoes moves