edit function change player status