updated pathfinder in c#