TODO Day17: should probably extract an actual graph library with a dijkstra algorithm and then fix that absolute mess