function cancelBet(uint betid,bool fee,uint betstate)
        private
        onlyBetCanCancel(betid)        
    {

        
        sendCancelValue(bets[betid].playerAddressA ,betid,fee);

        
        if(bets[betid].playerAddressB != address(0x0)){
            sendCancelValue(bets[betid].playerAddressB ,betid,fee);
        }

        bets[betid].betState = betstate;

        
        refreshWaitPairBetIDsByCancelBet(betid);
    }