Modeling of game and cards