Refactored score calculation to helper methods