public synchronized void setWinner(int winnerIndex)
			throws IndexOutOfBoundsException {
		if (winnerIndex > players.length)
			throw new IndexOutOfBoundsException(
					"The max number of players is four.");
		this.winner = players[winnerIndex];
	}