added purchaseItem method in shop