Total score calculation working