Programmatically placing stuff

Image 002 (2)

Took longer than I though, but at least it works now.