added code to alow for 3 card match