Properly generates corridors