Thanks! I had a bit of a think on it and came up with a way I might go about it - have each star track the angle to the octopus, and if the octopus has been to every angle relative to the star (I.e. circled around it) then it’s captured.
Of course it’s your game and I shall not tell you how to implement it, but that’s how it works in my head haha :)