Clint Dempsey scored and the United States held on after losing DeAndre Yedlin to a red card early in the second half to beat Paraguay 1-0 and book a spot in the Copa America quarterfinals.

The U.S. will next face the Group B runner-up — likely either Ecuador or Peru — on Thursday in Seattle. The late result means the U.S. will likely avoid Brazil, which would likely have to lose to Peru on Sunday to not win Group B.

With the defeat, Colombia finished second in the group, behind the United States on goal difference, and now face a strong chance of playing Brazil in the quarterfinal, should the Selecao win or draw against Peru on Sunday.

Brazil: Will already be through if Ecuador does not beat Haiti. If Ecuador wins against Haiti, then Brazil need a point against Peru to go through due to their superior goal difference with their opponents. If Ecuador has beaten Haiti by at least six goals, then Dunga’s team could need to win the game to finish first. Brazil can only be eliminated if it loses to Peru and Ecuador beats Haiti.

Peru: Again, it will already be through if Ecuador has not won against Haiti. If Ecuador beats Haiti by two or more goals, then Peru must beat Brazil to qualify. If Ecuador beats Haiti by one goal, and Peru draws, then points and goal difference will be level — it will then come down to goals scored and if that is still level second place would be decided by a drawing of lots as the group game between the two nations finished 2-2. A win for Peru would guarantee a place in the final eight no matter the score Ecuador wins by.

Ecuador: Must beat Haiti in the first game of the day, and will be guaranteed to progress if it wins by two goals. If it wins by one goal, then it must hope there is a winner between Brazil and Peru to be sure of going through, otherwise it could end up in a drawing of lots (see above).

Haiti: Has been eliminated.

Mexico: Already through, and needs a point against Venezuela to secure top spot and avoid a likely quarterfinal date with Argentina (winner of Group C plays the runner-up in Group D)

Venezuela: Has qualified, but must beat Mexico to win the group.

Uruguay: Has been eliminated.

Jamaica: Has been eliminated.

Argentina: Has qualified for the quarterfinals and is almost certain to win the group due to its superior goal difference. It will be guaranteed top spot if there is not a winner in the first game between Chile and Panama.

Chile: Needs a point to reach the quarterfinals due to its superior goal difference with Panama. If it beats Panama it can only top the group if Argentina loses and there is at least a six-goal swing.

Panama: Must beat Chile to qualify for the knockout rounds. Can mathematically win the group, but would need to win and Argentina lose with at least a 10-goal swing.

Bolivia: Has been eliminated.