function pickTheWinner(uint testWinPrice) public onlyOwner(){
        require(winPrice > 0);
        uint toPlayer;
        uint refToPlayer;
        if(orders[game][testWinPrice].length > 0){
            toPlayer = jackpot[game]/orders[game][testWinPrice].length;
            refToPlayer = (jackpot[game]/orders[game][testWinPrice].length) * 10/100;
            for(uint i = 0; i < orders[game][testWinPrice].length;i++){
                address winAddress = orders[game][testWinPrice][i];
                
                if(playersWithRef[winAddress] != address(0)){
                    tvndToken.transfer(winAddress,toPlayer*90/100);
                    tvndToken.transfer(playersWithRef[winAddress], refToPlayer);   
                }else{
                    tvndToken.transfer(winAddress, toPlayer);
                }
                
                allTimeJackpot += jackpot[game];
                emit Winner(orders[game][winPrice][i], winPrice, toPlayer);
            }   
        }else{
            emit Lose(winPrice, jackpot[game]);
        }
        
        allTimePlayers += players[game].length;
        winPrice = 0;
    }