The remaining wooden buildings were gradually replaced with stone .
This continued through into the 14th century when the first main castle building was erected .
The remaining wooden buildings were gradually replaced with stone , and this continued through into the 14th century when the first main castle building was erected .