dotted with nearly 400 islands , the most famous of which was oak island , where for more than two hundred years treasure hunters had excavated a deep pit into the bedrock , searching to no avail for gold .