Made AI avoid obstacles