 Complete the following phrase:  In 1475, during the Burgundian Wars, the mountain regions of Saanen and Pays-dEnhaut, who were allied with Bern, attacked and burned the tower of Aigle Castle. They then gave Aigle town and the surrounding district to Bern in exchange for not having to pay one-third of their income to Bern. In the treaty of Fribourg from 1476, Fribourg received rights over the Aigle district, which they gave up to Bern in 1483. Bern rebuilt Aigle Castle in 1489 and made it the seat of the bailiwick of Aigle. Also in 1475, the Confederation attacked and captured Grandson Castle. In the next year, Charles the Bold retook the castle and executed the Bernese garrison. In 1476, at the 