the castle was built on the corner of a great rock , so that on three sides it was quite impregnable , and great windows were placed here where sling , or bow , or culverin could not reach , and consequently light and comfort , impossible to a position which had to be guarded , were secured .