Added betting & fixed a small issue with totals calculations