private ArrayList<Integer[]> getNearbyRegions(double[][] array, int x, int y) {
		ArrayList<Integer[]> a = new ArrayList<Integer[]>();
		if (x - 1 >= 0)
			a.add(new Integer[] { x - 1, y });
		if (x + 1 < array.length)
			a.add(new Integer[] { x + 1, y });
		if (y - 1 >= 0)
			a.add(new Integer[] { x, y - 1 });
		if (y + 1 < array.length)
			a.add(new Integer[] { x, y + 1 });
		return a;
	}