Added functions that determine the exit and corridor direction from the exit. All done randomly! Tested briefly and it looks like it is working ok.
Only thing left to do now is to draw it to ASCII, and then onto the map level