         
         // Spawn more enemies
         enemy.run((SKAction.sequence([moveEnemy, waitRandom])), completion: {
-            for _ in 0...1 {
-                self.spawnEnemies()
-            }
+            self.spawnEnemies()
         })
     }
     

            #endif
        }
        
        for var enemy in textureMatrix {
            for stage in 0...3 {
                enemy[stage] = atlas.textureNamed("spacesprite\(enemy).\(stage).png")
            }
        }
        spawnEnemies()
    }


    
    
    // MARK: Enemy texture matrix.
    var textureMatrix = [[SKTexture?]](repeating: [SKTexture?](repeating: nil, count: 4), count: 3)
    
    // MARK: Configuration variables.
    let spinnyStuff = UserDefaults.standard.value(forKey: "spinnyStuff") ?? false
