add printInventory to main.js