fixed scoring logic