adding id as parameter of player