Updated empty inv code
Moved empty inv call to placeBlock function