added find obstacles to code