Playing a game with a photo resistor connected to Arduino

I was playing the game, I used a potentiometer to control it.

Just 2 questions. I had to use A0 as an input and not Pin 12.

And another question. Why I lost in the attached file?

Is it possible that a red dot was hiding under the green one, or the code is made to avoid that?

Thanks a lot, I will continue playing :slight_smile: and trying some changes in the code.