Finished adj_graph to solve maze problem using dfs