This is the solving the Monk riddle:
3 Monks are on one island, 3 Cannibals on the other. A boat with 2 seats is at the cannibal's island. How can the monks all reach the cannibals island, without there being more cannibals than monks on any island at any time.

The code is adjusted breath first search of AI class.