Solver from the Zombie exercise 2