added markdown route. removed globals. abstracted dungeons