Find a suitable path detecting obstacles