Updated score calculation to reflect the total score in real-time.