You must create the cellmap with 0 and 1; 0 is a cell walkable (for example the doors), and 1 is a cell no walkable (for example the walls)
example: cellmap of a 3 cells building with 4 doors:
101
000
101
example: cellmap of a 4 cells building with 3 doors
1101
0001
1100
1111