Remove redundant for loop from tryPermutations() of AiController