I think I forgot to mention these parts in the tutorial but they are called breakable loops that if you press a button it takes you to a different room it can be an enemy or the exit only to watch the counter and in the fights my mistake I did not know how to explain
But in a nutshell, they are already existing maps with an AI that detects rooms