Program stops when all sheeps dead