the rugged snowcapped mountains fenced in the castle , protecting it and enclosing it as it reared on the crest of its own height , the domed tower of its keep mirroring the lesser dome of the prison tower nearby .