added playerIndex