Changed graph to maze