I have actually made a game.
This is called a memory puzzle. You match the 2 that match until you have paired all of them. You need great memory to do this fast.
This is an example.
This is an uncompleted version of the game I am making. It has more squares and cleaner coding. This was hard as my first game but surprisingly has only 100 lines. A basic game like FLAPPY BIRD is only 300 lines. Trust me that’s short. Most advanced games nowadays are like 10000 lines long. If you wanna make a game, just search up a book on making games with coding. That should cut it.