clear code in tornamentResult API. do not create functions into loop
remove debug info