Keep building blocks inside property line

Hello people,

I am new with generative design theme. My goal is to acheive building layout design options within property line.

We have fixed different sized building blocks (in my case 4)
Question : How to make sure these 4 buillding blocks always stays inside property line.

Attaching my script hereBuildind site_V2.dyn (236.7 KB)1