straight line returns true only if following obstacles