more cli code
experimental optimizations (need benchmarks)
tweak timeout code, add comparison with random player back