Fixing problem in card match game