this is the code I was talking about, a little modified but it should be okay UPDATE 12-12-2025: I've added some time variables, this takes 40 minutes to check all the tiles. I think I might just skip real time border checks. I am not making the player wait for 40+ minutes each turn.