Accidentally broke everything for a while, it's working again. BFS is definitely working but DFS seems to have a small bug somewhere in it.