added entity count based escape and discover action