Scoring for 1 to 4 lines
Refactored