In a single-elimination chess tournament with 32 participants, the losing player of each game is eliminated. If each round halves the number of players until a winner is determined, how many games must be played in total to determine the champion? Let's think step by step and output the final answer within \boxed{}.
user