A primitive AI player is implemented.