Removed some unused code in AI. Cleaned up game loop.