Very true...but maybe the GridGenerator should ensure there's at least one wall. Or perhaps, there shouldn't be any assertion at all, in that zero walls is okay. Because, at least to me, this assertion is saying "I hope the improbable hasn't happened", which is why I said it was a little strange. You're free to disagree though.