a number of years past the duke of milan had purchased the area and built a great fortification , the castelgrande , which sat atop a rock bluff overlooking the southern approach to the saint gotthard pass .