Fix @process.stdout bug; also make tournament environment