Added another variable.

I had to add another variable to keep track of total damage in order to
get console.log to print out correctly.