Addition: Fixed the logic to fit 2 or 3 card matching mode.