public static int determinePriority(Pokemon u, int userInt, Pokemon e, int enemyInt)
	{
		if(userInt==4||userInt<0)
			return 0;
		else if(enemyInt==4||enemyInt<0)
			return 1;

		if(u.status==Pokemon.Status.PAR)
		{
			if(e.status!=Pokemon.Status.PAR)
			{
				if(u.move[userInt]==Pokemon.Move.QUICK_ATTACK&&e.move[userInt]!=Pokemon.Move.QUICK_ATTACK)
					return 0;
				else
					return 1;
			}
			else
			{
				if(u.speed>=e.speed)
				{
					if(u.move[userInt]!=Pokemon.Move.COUNTER)
					{
						if(e.move[enemyInt]==Pokemon.Move.QUICK_ATTACK)
						{
							if(u.move[userInt]!=Pokemon.Move.QUICK_ATTACK)
								return 1;
							else
								return 0;
						}
						else
							return 0;
					}
					else
						return 1;
				}
				else
				{
					if(e.move[enemyInt]!=Pokemon.Move.COUNTER)
					{
						if(u.move[userInt]==Pokemon.Move.QUICK_ATTACK)
						{
							if(e.move[enemyInt]!=Pokemon.Move.QUICK_ATTACK)
								return 0;
							else
								return 1;
						}
						else
							return 1;
					}
					else
						return 0;
				}
			}
		}
		else if(e.status==Pokemon.Status.PAR)
		{
			if(u.status!=Pokemon.Status.PAR)
			{
				if(e.move[enemyInt]==Pokemon.Move.QUICK_ATTACK&&u.move[userInt]!=Pokemon.Move.QUICK_ATTACK)
					return 1;
				else
					return 0;
			}
			else
			{
				if(u.speed>=e.speed)
				{
					if(u.move[userInt]!=Pokemon.Move.COUNTER)
					{
						if(e.move[enemyInt]==Pokemon.Move.QUICK_ATTACK)
						{
							if(u.move[userInt]!=Pokemon.Move.QUICK_ATTACK)
								return 1;
							else
								return 0;
						}
						else
							return 0;
					}
					else
						return 1;
				}
				else
				{
					if(e.move[enemyInt]!=Pokemon.Move.COUNTER)
					{
						if(u.move[userInt]==Pokemon.Move.QUICK_ATTACK)
						{
							if(e.move[enemyInt]!=Pokemon.Move.QUICK_ATTACK)
								return 0;
							else
								return 1;
						}
						else
							return 1;
					}
					else
						return 0;
				}
			}
		}
		else if(u.speed>=e.speed)
		{
			if(u.move[userInt]!=Pokemon.Move.COUNTER)
			{
				if(e.move[enemyInt]==Pokemon.Move.QUICK_ATTACK)
				{
					if(u.move[userInt]!=Pokemon.Move.QUICK_ATTACK)
						return 1;
					else
						return 0;
				}
				else
					return 0;
			}
			else
				return 1;
		}
		else
		{
			if(e.move[enemyInt]!=Pokemon.Move.COUNTER)
			{
				if(u.move[userInt]==Pokemon.Move.QUICK_ATTACK)
				{
					if(e.move[enemyInt]!=Pokemon.Move.QUICK_ATTACK)
						return 0;
					else
						return 1;
				}
				else
					return 1;
			}
			else
				return 0;
		}
	}