Debugging
Added freeUnitPlacement() in more places
Bugfixes