old avoidance when obstacle gets too close
changes before testing