IBoard[] sheetBoards = new Board[mapSettings.getMapWidth() * mapSettings.getMapHeight()];
IBoard[] sheetBoards = new IBoard[mapSettings.getMapWidth() * mapSettings.getMapHeight()];
    public void applyBoardSettings() {        mapSettings.replaceBoardWithRandom(MapSettings.BOARD_RANDOM);        mapSettings.replaceBoardWithRandom(MapSettings.BOARD_SURPRISE);        IBoard[] sheetBoards = new Board[mapSettings.getMapWidth() * mapSettings.getMapHeight()];        for (int i = 0; i < mapSettings.getMapWidth() * mapSettings.getMapHeight(); i++) {            sheetBoards[i] = new Board();            String name = (String)mapSettings.getBoardsSelectedVector().elementAt(i);            boolean isRotated = false;            if ( name.startsWith( Board.BOARD_REQUEST_ROTATION ) ) {                isRotated = true;                name = name.substring( Board.BOARD_REQUEST_ROTATION.length() );            }            if (name.startsWith(MapSettings.BOARD_GENERATED)) {                sheetBoards[i] = BoardUtilities.generateRandom(mapSettings);            } else {                sheetBoards[i].load( name + ".board");                BoardUtilities.flip(sheetBoards[i], isRotated, isRotated );            }        }        IBoard newBoard = BoardUtilities.combine(mapSettings.getBoardWidth(), mapSettings.getBoardHeight(),                mapSettings.getMapWidth(), mapSettings.getMapHeight(), sheetBoards);        game.setBoard(newBoard);    }