Fix issues with collision detection and building placement