added dice rolling and inventory updating