soln for card game question