Hey, nice memory game! That bug is quite a bummer, though. I wanted to click on the pairs asap while the image was fresh in my mind, but that always broke the game for me.
Also, that initial interaction with the document is not needed when running the game on an actual website. At least it is not needed on itch. I learned it the hard way too 😆