main: minor refactor of clear_board/boardsize