Implement scorekeeping and game resetting.