app/src/main/java/com/zenappse/memorymatcher/GameController.java
public void cardTapped(Card cardTapped) {
        if (previousCardTapped == null) {
            previousCardTapped = cardTapped;
            matchingComplete = false;
        } else {
            matchFound = compareCards(previousCardTapped, cardTapped);
            matchingComplete = true;

            if (matchFound) {
                score += 10;
                numMatches++;

                updateDeck(previousCardTapped, cardTapped);
            } else {
                score--;
            }

            if (score > highscore) {
                highscore = score;
                highscoreChanged = true;
                hasNewHighscore = true;
            }
        }

        gameInProgress = true;
    }
/**
     * Processes a card tap, if there was no previous card tapped, then set
     * it to be the current card, else check for matches and update score
     *
     * @param cardTapped card that is currently being tapped
     */
Processes a card tap, if there was no previous card tapped, then set
it to be the current card, else check for matches and update score

@param cardTapped card that is currently being tapped
Processes a card tap if there was no previous card tapped then set it to be the current card else check for matches and update score @param cardTapped card that is currently being tapped
public void cardTapped(Card cardTapped) {
        if (previousCardTapped == null) {
            previousCardTapped = cardTapped;
            matchingComplete = false;
        } else {
            matchFound = compareCards(previousCardTapped, cardTapped);
            matchingComplete = true;
            if (matchFound) {
                score += 10;
                numMatches++;
                updateDeck(previousCardTapped, cardTapped);
            } else {
                score--;
            }
            if (score > highscore) {
                highscore = score;
                highscoreChanged = true;
                hasNewHighscore = true;
            }
        }
        gameInProgress = true;
    }
public void cardTapped ( Card cardTapped ) { if ( previousCardTapped == null ) { previousCardTapped = cardTapped ; matchingComplete = false ; } else { matchFound = compareCards ( previousCardTapped , cardTapped ) ; matchingComplete = true ; if ( matchFound ) { score += 10 ; numMatches ++ ; updateDeck ( previousCardTapped , cardTapped ) ; } else { score -- ; } if ( score > highscore ) { highscore = score ; highscoreChanged = true ; hasNewHighscore = true ; } } gameInProgress = true ; }
Processes a card tap, if there was no previous card tapped, then set
 it to be the current card, else check for matches and update score
Processes a card tap if there was no previous card tapped then set it to be the current card else check for matches and update score