The king Goujian suffered military defeat but bided his time to execute the long game—one that took 20 years.