Example for Pathfinding with the A* algorithm