Updated guard logic

Also added the ability to avoid danger(to a point)