foi replied , a dungeon keep is the innermost and strongest part of a structure and always underground , where in most cases , the residents retreat to if an attacker breaches the upper structure 's defenses .