Update function board_contain_word