Added a basic AI.