refact hint and valid functions; take curr_word_ix