public boolean isWall(int x, int y, int direction) {
		if (isBorder(x, y, direction))
			return true;
		switch (direction) {
		case NORTH:
			if( y<=0 )
				return true;
			else
				return (columnWalls[x][y - 1]);
		case SOUTH:
			if( y>=(this.rows-1))
				return true;
			else
				return (columnWalls[x][y]);
		case EAST:
			if(x>=(this.columns-1))
				return true;
			else
				return (rowWalls[y][x]);
		case WEST:
			if(x<=0)
				return true;
			else
				return (rowWalls[y][x - 1]);
		}
		return false;
	}