LegacyDungeon.java simplify code

Now that I know wth's going on, I have fixed the code to make it less
ugly
same

meow