Without getting too much into the technical details, Google has essentially trained a complex artificial intelligence robot to spot the difference between good design and poor design and reward good sites accordingly.