Fixed a few errors with the AI, still not functional.