missionaries and cannibals problem in ai state space