pathfinding returns path with start at the top