This BCL measure is not correct. The hash to find constructions for user input is correct, but then attempts to work with wall surfaces are made for the rest of the script. I'm not sure where to suggest edits.
Find the corrected Ruby file linked here.