[Pathfinding] Made Pathfinding class.