Memory Match issues, card disappears after double click. And ending level.

function game(object, event)  
 if(event.phase == "began") then   
 if(checkForMatch == false and secondSelect == 0) then  
 --Flip over first button  
 buttonCover[object.number].isVisible = false;  
 lastButton = object  
 checkForMatch = true   
 elseif(checkForMatch == true) then  
 if(secondSelect == 0) then  
 --Flip over second button  
 buttonCover[object.number].isVisible = false;  
 secondSelect = 1;  
 --If buttons do not match, flip buttons over  
 if(lastButton.myName ~= object.myName) then  
 matchText.text = "Match Not Found!";  
 timer.performWithDelay(1250, function()   
 matchText.text = " ";  
 checkForMatch = false;  
 secondSelect = 0;  
 buttonCover[lastButton.number].isVisible = true;  
 buttonCover[object.number].isVisible = true;  
 end, 1)   
 --If buttons DO match, remove buttons  
 elseif(lastButton.myName == object.myName) then  
 matchText.text = "Match Found!";  
 timer.performWithDelay(1250, function()   
 matchText.text = " ";  
 checkForMatch = false;  
 secondSelect = 0;  
 lastButton:removeSelf();  
 object:removeSelf();  
 buttonCover[lastButton.number]:removeSelf();  
 buttonCover[object.number]:removeSelf();  
 end, 1)   
 end   
 end   
 end  
 end  
end  

When I use this method, one card can be double clicked and score. I don’t want to do that.

[import]uid: 128294 topic_id: 22774 reply_id: 322774[/import]

double click solved. [import]uid: 128294 topic_id: 22774 reply_id: 91169[/import]

I followed your code above EXACTLY, but the error I get is when I tap the image too fast twice, it disappears and I get the “Match Found” message popup. Is that you were referring to when you said “Double Click”? What was your solution. Appreciate any help! Thanks! [import]uid: 66192 topic_id: 22774 reply_id: 92418[/import]