Implement autoplay for playing agains other AI.

API by Alexandre Kharlamov, https://github.com/alexkh/hexai.