Fixed the AI.
Other changes...