memory card game, variable number of cards