Modified to make play loop only run when running the file, and to make playing return a result hash, analagous to the javascript implementation.
Modified to make play loop only run when running the file, and to make playing return a result hash, analagous to the javascript implementation.

jrduncans/highcard,jrduncans/highcard,jrduncans/highcard,jrduncans/highcard,jrduncans/highcard,jrduncans/highcard