close #65 refactored MazeGenAlgo helpers