doing Magic Squares