fixed so that the robot does not detect dead ends when there are none, also added function to detect low pass obstacles