working on Magic Square