spaghetti code for room and corridor generation
fixed crashes on dungeon generation, probably