added function for incrementing the score