Re-implemented AI selection on the client.