Rewrote AI checking.
Added some AI functionality.
Lots of improvements to AI.
Diagnosed AI conditional blocking issue.
Removed unnecessary globals. Diagnosed AI issue.
Merge pull request #1 from garrettgrimsley/AI

AI