Fixed an error in the betting logic to account for a bet being 0.