public String[] getAllPlayersName() {
        ArrayList<String> names = new ArrayList<String>();
        for (Player player : players) {
            names.add(player.getName());
        }
        return names.toArray(new String[names.size()]);
    }