The magic square
 

A square matrix filled with the numbers from 1 to n*n where the sum of each column and each row gives the same result is called a magic square and the resulting sum magic number.
The aim of the game is to arrange the numbers from 1 to n*n (n may be 3,4,5,6,7,8) in such a way as to obtain a magic square.

 

You can exchange two numbers in the square by clicking in sequence on them. You may also exchange a column (or row) with another one by clicking in sequence on their respective totals. Solutions can be found where also the sum of the two main diagonals are magic. Good luck!