demo player implemented in gen_fsm