Scoring and turn-running functions written