Added check to avoid obstructions while placing the chest.