Improve logic to increment card_counter and score on product line