Getting the best move barely works. The implementation is poor since it relies on the couple of log files to be written. There are timing issues.