Try to generate magic square