learn to manipulate the graph for the maze later