Two cards and three cards matching work