Added "eat" action to edible inventory items, fixed various inventory-related bugs