collision detection, basic AI