labirynth generator, array bug fix