logic for zombies generation