Error with the function to place bid (1d)