add board_hash code