added the initial underlinings of obstacle avoidance