Attention, I updated the game by fixing a bunch of jambs.
First of all, you will no longer have a hole in the map on two passes.
The game will no longer hang tightly when moving to another room.
Now you will have two loading windows when generating and loading the game.
And most importantly, the HtML5 version now works at 60 fps. I found the root of all the problems and all the evil in my engine, but it happened by accident, because there was nothing that pointed to it.