add AI player hooks