obstacle avoidance by a neural network