For about 900 years that castles were built they had many different shapes and different details . Over the approximately 900 years that castles were built they took on a great many forms with many different features , although some , such as curtain walls and arrowslits , were commonplace .