public static ArrayList getPlayerList() {
        ArrayList names = new ArrayList();

        for (int i = 0; i < players.size(); i++) {
            Player p = players.get(i);
            if (p != null) {
                names.add(p.getName());
            } else {
                names.add("");
            }
        }
        return names;
    }