public void setNumNameTablePages(int numNTPages){
		if(numNTPages != nameTableTiles.length){
			CHRTile newTiles[][] = new CHRTile[numNTPages][PPUConstants.NAME_TABLE_WIDTH * PPUConstants.NAME_TABLE_HEIGHT];
			int max = numNTPages;
			if(nameTableTiles.length < max){
				max = nameTableTiles.length;
			}
			for(int i=0;i<max;i++){
				System.arraycopy(nameTableTiles[i],0,newTiles[i],0,PPUConstants.NAME_TABLE_WIDTH * PPUConstants.NAME_TABLE_HEIGHT);
			}
			if(max < numNTPages ){
				if(getPatternTableTile(0,0) != null){
					CHRTile tileZero = getPatternTableTile(0,0);
					for(int i=max;i<numNTPages;i++){
						for(int j=0;j<PPUConstants.NAME_TABLE_WIDTH * PPUConstants.NAME_TABLE_HEIGHT;j++){
							newTiles[i][j] = new CHRTile(tileZero,0);
						}
					}
				}
			}
			nameTableTiles = newTiles;
		}
	}