In a tennis tournament in which every pair has to play with every other pair, 10 players are playing. Find the number of games played.