finished bet function