added buy item functionality
merged