var currentBettingPools … var bettingOpen … var bettingMu … func startFightBetting(srv common.ChatServer, champuid common.UserId, champodds int, challengeruid common.UserId, challengerodds int) { … } func acceptBetOnFighter(u common.UserRecord, amount int, onfighter common.UserRecord) { … } func endBetting(srv common.ChatServer) { … } func payoutWinners(fightwinner common.UserRecord, draw bool) { … }