You have an event on touched yellow sprite - destroy yellow sprite.
There are no other conditions to this, but I guess you only want it destroyed when cards match.
I'm also not sure why you would use the yellow sprites are seperate from the card sprite.
To see the win is true, it is checked if two global variables are the same. These variables are set from instance variables on the cards. But nowhere in your events are those instance variables changed. so they are always 0, so they are always the same.