calculates direction if star dies