How many cases are you trying to handle? All of them?
Yes... And I feel that's a dumb way to go XD
I need to rethink the actual cases I'll encounter instead of coding for every wall layout possible. Anyway you helped a greal deal, as I'm now able to define a precise layout and identify it. I'll go over the other examples you provide to check if that's a more suitable way to go.