Betting

added the betting code, hopefully it works.