Extract method setPlayer