added basic AI