added from Labyrinth Generator repo