red state, hallway not defined
red state, door[5] undefined
red state, doors[100] undefined
green, refactor