added line completion detection and attributed score to number of complete lines