A third solution to the problem laid out in my last post is to stop doing two things at once.
Right now I’m trying to create a graph structure from a 2d array and at the same time traverse the 2d array looking for paths. This is a mistake.
I’ll re-d0 it to first make a graph structure from the 2d array, and then I can focus purely on figuring out interesting traversal methods. This is a better idea than options 1 and 2 in my last post for fixing this.