The memory game

Here are the rules: