Examine the following sentence:
Each of the players were determined to win the game, demonstrating their commitment to teamwork.
Which option corrects the grammatical error in this sentence?