private void replace(int[][] temp, int oldValue, int newValue) {
		for(int y = 0; y < temp[0].length; y++) {
			for(int x = 0; x < temp.length; x++) {
				if(temp[x][y] == oldValue) {
					temp[x][y] = newValue;
				}
			}
		}
	}