private bool TrainerIsOutOfPokemonToBattle(bool isEnemyTrainer)
        {
            ITrainer trainer = isEnemyTrainer ? EnemyTrainer : Player;

            if (trainer.GetNextAvailablePokemon() == null)
            {
                FinishBattle(isEnemyTrainer);
                return(true);
            }
            else
            {
                SetCurrentToSendNextPokemon(isEnemyTrainer);
                return(false);
            }
        }
        private void SetCurrentToSendNextPokemon(bool isEnemyTrainer)
        {
            ITrainer trainer = isEnemyTrainer ? EnemyTrainer : Player;

            trainer.SetPokemonAsCurrent(trainer.GetNextAvailablePokemon());
        }