void Update()
 {
     if (!HasSpawned() && gg.HasBeenGenerated(gg.groundWidth * 3) &&
         enemies.Count() < maxEnemies)
     {
         SpawnEnemies(random.Next(0, 4));
     }
     if (enemies.Count >= maxEnemies)
     {
         print("Max n. of enemies reached");
     }
 }