add end condition, add AI to discourage pplf from wandering off