perm puzzleMatrix