Added score-keeping code