A person who hunts down and imprisons or kills the killer of a loved one is called a criminal, a vigilante; an outlaw. A person who sees to it that in the future, hypothetical people who hypothetically kill hypothetical strangers get imprisoned or punished is called a legislator.