Refactoring the pathFinder tile.