Solution to a labyrinth. Use as labyrinth a prefab one and send it as input