Add InSpace check to ClosestStargate