separated basic cardgame functions from golf-specific ones.