Refined card flipping and matching