Cowboys finish with a win