limit permutations locally to n moves