Adding in a DFS so that we can make a random map and ensure hunter/prey are in the same connected component