Added matching logic for 2 cards only