refine score_pos to consider horizonally surrounding whitespace