function findBid(address creator, uint eventId, bytes32 bidName) private view returns(bool){
        for (uint8 i=0;i<betEvents[creator][eventId].bids.length;i++){
            if(betEvents[creator][eventId].bids[i].name == bidName){
                return true;
            }
        }
    }