remove player function