No driver is allowed to pass another car while the caution flag is posted, so at that point, to win, all Kanaan needed to do was finish without crashing.
Hildebrand was driving to certain victory, he spun his car in the marbles on the very last turn of the last lap, giving Wheldon in the Reagan car the lead and the checkered flag.