public boolean irrigated(int r, int c)
	{
		boolean temp = false;
		if (c > 0)
		{
			temp = temp || verticalRivers[r][c-1];
		}
		if (c < cols - 1)
		{
			temp = temp || verticalRivers[r][c];
		}
		if (r > 0)
		{
			temp = temp || horizontalRivers[r-1][c];
		}
		if (r < rows - 1)
		{
			temp = temp || horizontalRivers[r][c];
		}
		return temp;
	}