tweak new stub classes and enclose Poker in a self-executing function