fix to Kill function: should compare using equals, not ==