Don't get snippy, besides I think the word you are looking for is enclosed,or included not inclused.
A hole would be defined as a current value of zero, and current x+1, current y with a value of 1, and current x, current y-1 with a value of 1, and current x-1, current y with a value of 1, and current x, currenty-1 with a value of 1.
That's my definition of a hole with all 4 side with a wall.
You want that definition and what other definitions?