public static Pokemon teachMove(Pokemon pokemon, Item tm, int number)
	{
		if (tm.effect1 != Item.Effect.TM && tm.effect1 != Item.Effect.HM)
		{
			Inventory.errorWindow.addMessage(" The Item selected is not a TM or HM! ");
			return pokemon;
		}

		else if (canLearnMove(tm,pokemon))
		{
			pokemon.move[number] = tm.moveLearned;
			pokemon.createMoves();
		}
		else
		{
			Inventory.errorWindow.addMessage(" Couldn't learn TM or HM! ");
			Inventory.itemCancel = true;
		}
		return pokemon;

	}