Google once had a head start in the AI race. Now the company needs to stand up against competition from OpenAI and Microsoft.