A QCD model using generalized Yang-mills theory