Maze generation array overflow fixed