hunt/target algorithm

hunt/target algorithm