Benito's magic square solver