Game logic and scoring.