Oh, so that's what's happening. To implement it faster I had to store the rooms as two arrays, so the map expands only to right and bottom. I'll surely fix that in a post-jam version. So again that is my fault in design!