changed players[0] to thisPlayer