finding right path to start goal