app/src/main/java/com/zenappse/memorymatcher/TabbedGameActivity.java
private Bundle buildBundleForGameGrid(int gameBoard) {
        Bundle bundle = new Bundle();
        bundle.putString(EXTRA_USERNAME, username);
        bundle.putString(EXTRA_RECORD_HOLDER, gameController.getRecordHolder());
        bundle.putInt(EXTRA_SCORE, gameController.getScore());
        bundle.putInt(EXTRA_LAST_GAME_SCORE, gameController.getLastGameScore());
        bundle.putInt(EXTRA_HIGHSCORE, gameController.getHighscore());
        bundle.putInt(EXTRA_GAMEBOARD, gameBoard);

        try {
            // This is slower than other methods, but the object isn't /that/ big
            bundle.putString(EXTRA_CARD_DECK, ObjectSerializer.serialize(gameGridCardDeck));
        } catch (IOException e) {
            e.printStackTrace();
        }

        return bundle;
    }
/**
     * Method that builds the bundle to send to the game fragments
     *
     * @return Bundle
     * @param gameBoard Int for a game board
     */
Method that builds the bundle to send to the game fragments
@return Bundle
@param gameBoard Int for a game board
Method that builds the bundle to send to the game fragments @return Bundle @param gameBoard Int for a game board
private Bundle buildBundleForGameGrid(int gameBoard) {
        Bundle bundle = new Bundle();
        bundle.putString(EXTRA_USERNAME, username);
        bundle.putString(EXTRA_RECORD_HOLDER, gameController.getRecordHolder());
        bundle.putInt(EXTRA_SCORE, gameController.getScore());
        bundle.putInt(EXTRA_LAST_GAME_SCORE, gameController.getLastGameScore());
        bundle.putInt(EXTRA_HIGHSCORE, gameController.getHighscore());
        bundle.putInt(EXTRA_GAMEBOARD, gameBoard);
        try {
            bundle.putString(EXTRA_CARD_DECK, ObjectSerializer.serialize(gameGridCardDeck));
        } catch (IOException e) {
            e.printStackTrace();
        }
        return bundle;
    }
private Bundle buildBundleForGameGrid ( int gameBoard ) { Bundle bundle = new Bundle ( ) ; bundle . putString ( EXTRA_USERNAME , username ) ; bundle . putString ( EXTRA_RECORD_HOLDER , gameController . getRecordHolder ( ) ) ; bundle . putInt ( EXTRA_SCORE , gameController . getScore ( ) ) ; bundle . putInt ( EXTRA_LAST_GAME_SCORE , gameController . getLastGameScore ( ) ) ; bundle . putInt ( EXTRA_HIGHSCORE , gameController . getHighscore ( ) ) ; bundle . putInt ( EXTRA_GAMEBOARD , gameBoard ) ; try { bundle . putString ( EXTRA_CARD_DECK , ObjectSerializer . serialize ( gameGridCardDeck ) ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } return bundle ; }
Method that builds the bundle to send to the game fragments
 @return Bundle
 @param gameBoard Int for a game board
Method that builds the bundle to send to the game fragments @return Bundle @param gameBoard Int for a game board
// This is slower than other methods, but the object isn't /that/ big