Added CardMatchingGame model class which contains the business logic for playing the game.