common code for poker and rummy