Cowboys win on one of the craziest plays of the season