now can have an option to generate a loop in the maze, (close #2)