Edges needs to be a member, generateMaze is side-effecting