Google and Walmart have decided to join forces, partially to keep Amazon from owning the entire online retail business.