cash 4 permutations implemented