magic square problem