public void checkPoison()
	{
		int numPokes=0;

        for (Pokemon aPartyPokemon : partyPokemon) {
            if (aPartyPokemon != null && aPartyPokemon.status == Pokemon.Status.PSN) {
                aPartyPokemon.health--;
                drawPoison = true;
                if (aPartyPokemon.health <= 0) {
                    aPartyPokemon.health = 0;
                    aPartyPokemon.status = Pokemon.Status.FNT;
                }
                numPokes++;
            } else if (aPartyPokemon != null)
                numPokes++;
        }


		if(!Mechanics.hasRemainingPokemon(partyPokemon,numPokes))
		{
			JokemonDriver.area = JokemonDriver.Area.Pokecenter;
			JokemonDriver.location.x = 4;
			JokemonDriver.location.y = 3;
			JokemonDriver.direction = 90;
			JokemonDriver.makeTheArea = true;
			JokemonDriver.performingAction = true;
			JokemonDriver.setTransition(true);
		}
	}