void LayerGenerated(int layerID, List <GameObject> layerLines)
    {
        if (layerID < 0)
        {
            // Layer not found, end analysis
            return;
        }
        layers.Add(new Tuple <int, List <GameObject> >(layerID, layerLines));

        if (layers.Count() < 2)
        {
            nextLayerToFetch++;
            layerGenerator.FetchLayer(nextLayerToFetch, LayerGenerated);
        }
    }
 // Start is called before the first frame update
 void Start()
 {
     layers            = new List <Tuple <int, List <GameObject> > >();
     layerGenerator    = GetComponent <LayerGenerator>();
     runningSimulation = false;
     layerGenerator.FetchLayer(0, LayerGenerated);
     LayerInfoText.text = "Analyzing layer " + 1;
 }