added game logic to compare two flipped cards