You can
easily tell the
walls work the same way as in Super Mario World by how they quickly retract / move out the screen once the boss has been defeated, although he doesn't seem to do what he and Morton did in SMW and start
climbing up the sides of the room for whatever reason.