Made checkInventory() const