There are two magic spells that can rearrange the board.
Rotate Sector: Choose any one sector and rotate it 90 or 180 degrees. Leave all counters in place. Portals are off the board and not affected! If a wall has been created or destroyed on an internal edge of the sector being rotated, roll the die. On a high result, the alteration stays with the sector being rotated. On a low result, the alteration stays with the rest of the board.
Swap Sectors: Choose any two sectors and exchange their places. Do not rotate them. Resolve created or destroyed walls as described above.