First team to score a TD wins, but if the team that gets possession first only gets a field goal or nothing at all, then both teams would get at least one possession, then after that the first team to score, whether it's a touchdown or field goal, wins. Ball game over.