Making this work such that it takes permutations
Got relevant base numbers working