private boolean chooseTheRigthStair(int currentLevel , int nextLevel, String[]stair)
	{
		boolean found=false;;
		try
		{
			String positions=stair[currentLevel];
			int posI=Integer.parseInt(positions.substring(0,positions.indexOf(' ')));
			int posJ=Integer.parseInt(positions.substring(positions.indexOf(' ')+1,positions.length()));
			TermS newTerm = new TermS (posI , posJ);
		    newTerm.setLevel(nextLevel);
		    System.out.println(newTerm.getLevel());
			System.out.println(newTerm.getPositionI());
			System.out.println(newTerm.getPositionJ());
		    path.push(newTerm);
		    found=true;
		}
		catch(Exception e)
		{
			
		}
		return found;
	}