implemented total score