flip cards and update the UI with help from the CardMatchingGame model