several typos in AI
further adjustment on keeping strategy (last 2 commits by lrl026)
missing part of last commit