moves some logic to betting engine