Pathfinding with a maximum distance using Dijkstra's algorithm (in Java) | Hacker News Reader