Added basic obstacle avoidance to AI