findWay function updated

works fine unless we have only only one blocked way in a row