Working on a Memory Game

So,here I am ,working for a javascript memory game. I have the CSS HTML and in the JS File i have the event listener to clicks,when you click on a card,it reveals the card symbol,also,a shuffle function that helps shuffles cards everytime you ‘start’ a game,now, I need to make a function or something around that that let’s you only chose two cards then flip them back if the symbol doesn’t match,any ideeas?
codepen link

I like the visual style of the game. :+1:
As for your question, why not create a global variable to indicate if a card has been pressed already or not. That way you can identify if the user hasn’t pressed anything yet or if he/she is trying to make a match.

Make sense?