lines.sort(key=itemgetter(1))
return lines
-def board(image, lines, show_all, do_something):
+def board(image, lines, show_all, do_something, logger):
"""Compute intersections, find stone colors and return board situation."""
# TODO refactor show_all, do_something
# TODO refactor this into smaller functions
+ logger("finding the stones")
lines = [dst_sort(l) for l in lines]
an0 = (sum([l[0] for l in lines[0]]) / len(lines[0]) - pi / 2)
an1 = (sum([l[0] for l in lines[1]]) / len(lines[1]) - pi / 2)