In a local chess tournament, each match eliminates one player, and the tournament continues until there is a single winner. If there are 32 players at the start of the tournament, how many matches are played to determine the winner? Let's think step by step and output the final answer within \boxed{}.
user