public void changeMapSize(int newWidth, int newHeight){
	//	if(newWidth > 0 && newHeight > 0){
			int tileSize = parent.tilePanel.getTileSize();
			int[][][] temp = new int[tileID.length][tileID[0].length][tileID[0][0].length];
			//do this for every layer
			for(int k = 0; k < tileID.length; k++){	
				
				//copy old array
				for(int i = 0; i < tileID[0].length; i++){
					temp[k][i] = Arrays.copyOf(tileID[k][i], tileID[k][i].length);
				}
				
			}	
			
			//create new array
			tileID = new int[temp.length][newWidth][newHeight];
			parent.error("height: " + tileID[0][0].length);
			
			//create var aWidth, and give it the size of the old array if it's longer then the old array
			int aWidth = newWidth;
			if(temp[0].length < newWidth) aWidth =  temp[0].length;
			
			for(int k = 0; k < tileID.length; k++){			
				//copy old array into new array
				for(int i = 0; i < aWidth; i++){
					tileID[k][i] = Arrays.copyOf(temp[k][i], newHeight);
				}
			}
			
			//repaint the screen
			this.repaint();
			setPreferredSize(new Dimension(newWidth * tileSize, newHeight * tileSize));
			this.revalidate();
			parent.jsp.revalidate();
			
			backUpTiles();
			System.out.println(tileID[0].length);
	//}
		//else parent.error("Map width and height must be positive.");
	}