Added item entity and added logic in inventory