fixed basic AI