changed arguments of initPlayer method