An AI exercise for a math puzzle involving escaping a hungry monster.