Assert.assertEquals(new Node(1, 1), solution.solveFor(room));
}
static class Solution {
public Node solveFor(String[] room) {
Graph graph = Graph.fromStringArray(room);
List<Node> specialNodes = graph.getSpecialNodes();
Set<Node> nodes = graph.getAllNodes();
BFS bfs = new BFS(graph);
int previousMinDistance = Integer.MAX_VALUE;
Node bestNodeSoFar = null;
for (Node node : nodes) {
if (specialNodes.contains(node)) {