cash 3 permutations implemented