this problem was solved by the clever use of the warehouses automation units and the surrounding storage units , forming corridors and mazes while the townspeople could wait in ambush them watching through cameras .