adjusted total_score method in Player class