function cancelBetByA(uint betid)
        private
    {
        if(bets[betid].playerAddressB != address(0x0)){
            
            bets[betid].playerAddressA = bets[betid].playerAddressB;
            bets[betid].playerAddressB = address(0x0);
            bets[betid].betState = BET_STATE_WAITPAIR;
            
            uint betpriceid = getBetPriceID(bets[betid].betPrice);
            waitPairBetIDs[betpriceid] = betid;
        }else{
            
            bets[betid].betState = BET_STATE_CANCEL_BY_PLAYER;
            refreshWaitPairBetIDsByCancelBet(betid);
        }

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


    }