fix #8 should only consider 5 cards when given 5 cards also