Added getTotalScore function and the functionality for the Done button