finished implementing Hunt-and-Kill