got basic AI working