private void temp(double[][] array, boolean[][] water, int x, int y) {
		if (!water[x][y])
			calc[x][y] = 4.0;
		for (int k = 1; k < 6; k++) {
			ArrayList<Object[]> a = getNearbyRegions(array, x, y, k);
			for (Object[] r : a)
				if (r != null) {
					double m = calc[x][y] * 0.7;
					if (m > calc[(Integer) r[0]][(Integer) r[1]])
						calc[(Integer) r[0]][(Integer) r[1]] = m;
				}
		}
	}