The card guessing game: A generating function approach. (March 2023)