refactor, and change player process init args to be array.
move gen_event:add_handler into player process's init function.