Start of betting logic