public static void catchPokemon()
	{
		b1.tryToCatch();

		if(Mechanics.caughtPokemon(Battle.enemy[0],pokeball))
		{
			caughtPokemon=Battle.enemy[0];
			b1.addText("You caught "+Battle.caughtPokemon.nickname+"!");
			b1.addText("Pokedex data was added for "+Battle.caughtPokemon.nickname+"!");
			caughtPokemon.originalTrainer=JokemonDriver.name;
			caughtPokemon.idNumber=JokemonDriver.trainerIdNumber;
			Pokedex.caught(enemy[0].pokedexNumber-1);

			BATTLE_OVER=true;
		}
		else
		{
			b1.failedCatch();
			b1.addText("Aww! It appeared to be caught!");
		}
	}