Color click game

I want to let it wrong when the mouse clicked wrong place
so I use the if-else , mouse X and Y in right range and clicked it get score,
But now I clicked the first color ,it input twice clicked , then, it appear the incorrect clicked.

void mouseClicked() {
if (score==0) {
if (mouseX <= 365 && mouseX >= 235 && mouseY <= 365 && mouseY >= 235) {
score+=10;
}
else{
wrong();
}
}

Hello,

I don’t fully get what you mean, but why do you have this: if (score==0) {