modified pathfinder::findPath and grid::getDistOfAllAdj, seems to work