Heuristic bugfix for horizontal line scoring.

May still be some logical errors. Update in progress