This is a locus classicus of a Memory Game.
You can play the game here: https://ryechris.github.io/js-memorygame.
The game features 16 cards that face down.
You turn the card over by clicking on it.
When you turn two cards and they have they have the same icon, you score a point.
When you have successfully done so for all the cards on the deck, you win the game.