remove static state from PathFinder and use WeightedMap instead