public String getStatsXml() {
        String res = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
        res += "<stats>";
        res += "<totalSpins>" + totalSpins + "</totalSpins>";
        res += "<winNumber>" + roulette.getLastSpinResult() + "</winNumber>";
        res += "<timeToSpin>" + getTimeToSpin() + "</timeToSpin>";
        for (Player pl : players.values()) {
            res += "<player>"; 
            res += "<name value=\"" + pl.getName() + "\" />";
            res += "<id value=\"" + pl.getId() + "\" />";
            res += "<balance value=\"" + pl.getMoney() + "\" />";
            res += "<totalwins value=\"" + pl.getWinBetCount() + "\" />";
            res += "</player>";
        }
        
        res += "</stats>";
        return res;
    }