Civ like strategy game spawning in? Help

So, I am making my second strategy game I want this one to be like Civ or humankind but I’m running into an issue I used the Gdevlop tutorial on how to do procedural generation, but I cannot for the life of me make it, so my settler spawns on land a 100 percent of the time. And it always spawns in the corner I have tried since this morning, and I honestly don’t know what to do I am wondering if it would just be easier if I didn’t do procedural generation. So I tried again in a earlier save and I was able to make it spawn on land, but it created a outpost on every single plains tile.


This is the code I got for the spawning.