def update_score(self, node, add_to_score):
current_score = <NUM_LIT:0><EOL>score_string = self.parser.getAttribute(node, '<STR_LIT>')<EOL>if score_string:<EOL><INDENT>current_score = int(score_string)<EOL><DEDENT>new_score = current_score + int(add_to_score)<EOL>self.parser.setAttribute(node, "<STR_LIT>", str(new_score))<EOL>
adds a score to the gravityScore Attribute we put on divs
we'll get the current score then add the score
we're passing in to the current