deleted the second call to the doComputerTrades function