fix board_hexnum calculation