gambler model, passing tests