complete framework of matching game 4 card version