refactor of toggle current player method