reset hashmap every time a move is being computed. each state value is
actually the value of the farthest node explored, so need to update this
every time.