fix token disappearing bug and implement player win and death