Chiefs edge Cowboys 17-16