Made UseItem function

Added stuff to the useItem() function.