Added code used to avoid obstacles in the scribbler project