memory, simplified code, added a matchcode.

The match code is use to check 2 cards are the same instead
of checking the image name. In some cases cards may have different
images and match (math memory for example).