public static Pokemon randomEncounter(Pokemon.Species s1, int rare1, int lvl1, Pokemon.Species s2, int rare2, int lvl2,
		Pokemon.Species s3, int rare3, int lvl3,
	    Pokemon.Species s4, int rare4, int lvl4, Pokemon.Species s5, int rare5, int lvl5)
	{
		int randy=(int)(Math.random()*100)+1;

		if(randy<=rare1)
		{
			return new Pokemon(s1,lvl1);
		}
		else if(randy<=rare1+rare2)
		{
			return new Pokemon(s2,lvl2);
		}
		else if(randy<=rare1+rare2+rare3)
		{
			return new Pokemon(s3,lvl3);
		}
		else if(randy<=rare1+rare2+rare3+rare4)
		{
			return new Pokemon(s4,lvl4);
		}
		else
		{
			return new Pokemon(s5,lvl5);
		}

	}