KC survives errors, takes AFC West with 23-13 win over Pats