trying to fix magic square