Somehow got stuff to work if traders do not enter the market silmutaneously, code still needs cleanup