}
if (onlyOneTeamLeft) {
while (!slots.isEmpty()) {
String slotKey = (String) slots.keySet().toArray()[0];
Slot slot = slots.remove(slotKey);
if (slot.trainer() instanceof Player) {
Player p = (Player) slot.trainer();
PlayerManager.pushJson(p, json);
PlayerManager.popActivity(p, this);
}
}
}