correctly terminate the loop when both buyer & seller are exhausted