Thanks for the responses!
After trying different ways of organizing my code, I have to agree... it's much easier to read and fix your code when it's already broken down into many functions. I'm finally seeing the light.

You should have seen some of my old walls of unorganized code...like finding needles in haystacks!
My current experiment is a random room generator which involves, among other things, selecting the room size, the entry and exit doorway style, which segment of the room the doorways are located in, where one room connects to another, whether or not there is a door, whether the door is open, closed or locked...eventually I'll add a random roll for stairs, enemies, decor & furnishings, possibly trap doors, etc.
Functions are making it much easier to track all of these small components. Yay functions.