#465 Wolf/goat/cabbage game: improve game over condition.

5 jobs for 465-add-wolf-goat-cabbage-game-as-cif-example in 0 seconds (queued for 4 minutes and 37 seconds)