obstacle avoiding robot code​