public boolean isOpen(int i, int j)		// is site (row i, column j) open?
	{
		if (i<1 || i>N || j<1 || j>N)
		{
			throw new java.lang.IndexOutOfBoundsException();
		}

		return grid[N * (i - 1) + j - 1] == true;

	}