Is the gray piece surrounded by the red pieces?

yes but there are many posibilities…the red boxes could be touching the cathedral or they could be far away and still surrounding the cathedral. How do I test that??
Somebody suggested pathfinding algorithms…I’m taking a look at that.

thanks

JT