Extract a cardsListToLine function.

Authored by shlomif on Mar 8 2019, 12:08 PM.