initialization of player