dungeon program incorporates object-oriented principles