buy function for potions working