Organized Doorway Code

Separated the code that carves up doorways in mazes. Mostly a minor
change in preparation for giving doors smarter placements.