public void flipCard(int row, int col){
        
        if (prevSelectedCardRow == -1 && prevSelectedCardCol == -1){
            prevSelectedCardRow = row;
            prevSelectedCardCol = col;
            cards[row][col].setShowing(true);
            updateButtons();
        }
        else if ( prevSelectedCardRow != -1 && prevSelectedCardCol != -1){
            cards[row][col].setShowing(true);
            updateButtons();
            this.game.matchedCards( cards[prevSelectedCardRow][prevSelectedCardCol], cards[row][col]);
            scoreLabel.setText(Integer.toString(this.game.getScore()));
            //update the score in the UI
            prevSelectedCardRow = -1;
            prevSelectedCardCol = -1;
        }        
    }