Memory Pair Game

Hi guys ! I try to make Memory game but there are some bugs here. I’ll be very appreciate to you if you help me to find them. Thanks =)
There is link to my rep in github

Memory - Pair Game" - a card game in which all of the cards are laid face down on a surface and two cards are flipped face up over each turn. The object of the game is to turn over pairs of matching cards. The game ends when the last pair has been picked up.

So what are the bugs that you need help with??

I made one of these in React

It should be works like this

Yep. I see, Could you please send me link to reposit ?