Implemented pathfinding visualization.