generalize to any player card count