The model for the memory game