modified CardGame class