Chiefs agree to terms with Ty Law