The correct play was to get to the line quickly, snap with about 12 seconds left, throw it over the middle, call your timeout, kick the field goal.
They were slow to get to the line, then some of the receivers started futzing around at the line with something so they weren't set and they couldn't snap, the resulting confusion let the clock run from 12 to like 7 or 8, so Williams had to panic throw toward the end zone and time ran out.