cleanup
fixed an important bug in the coffeescript solution

the previous solution was allowed repeated cards in the answer! this is
not allowed in the problem description. a new permutations function is
introduced (also recursive) and used while generating the list of
possible card arrangements.