MagicSquare, full working version