functionality to keep total scores