buy points function to be tested