I have a graph which represents a game board and I am trying to traverse it. The nodes represent tiles on the map. I have a function which tries to find all reachable tiles