choose player function