This is a tile matching game. You pick a tile from a board and try to find the exact same tile in the board again. The game ends when you find all the matching tiles.
You can see computer play it as well. Basically, the computer keeps track of all the seen positions and the values of those positions, so when it finds a tile the it can reference back to the seen positions to find if it has found a match.