If it was scripted to be possible, there must've been a bug. The first room I got was with 1 and 7 in the crystal ball, A:"The cage to my right is 1", B:"I am 7". This works both with B as 7 or B as 1.
I think if you want to expand the game, you should probably get rid of the impossible rooms entirely. I completely understand the limitations of the jam, and I understand how complicated it is to do that logic, so I'm not holding any of this against the game. It was still a very fun concept and great art style that reminds me a lot of Die in the Dungeon!