Gets a player by index (0 for player1, 1 for player2).
The player at the specified index, or null if not found.
The index of the player (0 or 1).