small refactor of board.py drawSegments()