         return listMessage
     }
     
+    mutating func setCapitanes() -> Bool {
+        guard areComplete() && capitanes.count == 0 else { return false }
+        
+        let capitanNegro = list[Int.random(min: 0, max: maxPlayers - 1)]
+        var capitanBlanco = list[Int.random(min: 0, max: maxPlayers - 1)]
+        while list.count > 1 && capitanNegro.alias == capitanBlanco.alias {
+            capitanBlanco = list[Int.random(min: 0, max: maxPlayers - 1)]
+        }
+        
+        capitanes = [Captain.init(team: .negro, user: capitanNegro),
+                             Captain.init(team: .blanco, user: capitanBlanco)]
+        return true
+    }
+
     func showCaptains() -> String {
         return "\(capitanes[0].team.rawValue) \(capitanes[0].user.firstName) \n\(capitanes[1].team.rawValue) \(capitanes[1].user.firstName)"
     }

        jsonArray.insert(try makeCancelButton(nil), at: 0)
        return jsonArray
    }
    
    func setCapitanes() -> Bool {
        guard players.areComplete() && players.capitanes.count == 0 else { return false }
        
        let capitanNegro = players.list[Int.random(min: 0, max: players.maxPlayers - 1)]
        var capitanBlanco = players.list[Int.random(min: 0, max: players.maxPlayers - 1)]
        while players.list.count > 1 && capitanNegro.alias == capitanBlanco.alias {
            capitanBlanco = players.list[Int.random(min: 0, max: players.maxPlayers - 1)]
        }
        
        players.capitanes = [Captain.init(team: .negro, user: capitanNegro),
                     Captain.init(team: .blanco, user: capitanBlanco)]
        return true
    }
}

struct Players {

        return try showList(nil)
    }
    
    func removePlayer(from userName: String, to player:User, _ byName: Bool?) throws -> JSON {
        if players.remove(player: player, byName) {
            
            let bajaMessage = userName == player.firstName ? "‼️ Se bajó \(player.completeName())" : "‼️ \(userName) bajó a \(player.completeName())"
            return try showList(bajaMessage)
        } else {
            return try showList("🤦🏻‍♂️ No estás anotado, \(player.firstName)\n¡Anotate! 👇🏻")
        }
