Method get_next_states() done.