tells you if matrix is part of a magic square