As requested over there, here's a commented cap of "first steps with the CardGame object". (Actually the request was for a tutorial involving a simple game, but hey, we're all literate here, rgith?)
Good Job xD
Develop games in your browser. Powerful, performant & highly capable.
well done