public int getAdjacentWalls (int x, int y, int scopex, int scopey)  {
		int startx = x - scopex;
		int starty = y - scopey;
		int endx = x + scopex;
		int endy = y + scopey;
		
		int ix = startx;
		int iy = starty;
		
		int wallcounter = 0;
		
		for (iy = starty; iy <= endy; iy++) {
			for (ix = startx; ix <= endx; ix++) {
				if (! (ix == x && iy == y)) {
					if (isWall(ix, iy)) {
						wallcounter += 1;
					}
				}
			}
		}
		
		return wallcounter;
	}