slightly modified the build script
rectangle placing now fully functional (inside walls, outside walls, both)