private boolean chooseTheCell(byte[]limites , boolean[][]valid ,TermS currentTerm )
	{
		boolean check =false;
		boolean answer =false;
                        boolean here =false;
		char x = 97;
                if(limites[0]==currentTerm.getPositionI()){
                    x='d';
                }
                if(limites[1]==currentTerm.getPositionJ()){
                     x='b';
                     here=true;
                }
		for(int i=limites[0];i<limites[2];i++)
		{
			for(int j=limites[1];j<limites[3];j++)
			{


				if(valid[i][j])
				{
					TermS newTerm = new TermS(i,j);
					newTerm.setLevel(currentTerm.getLevel());
					currentTerm.setDirection(x);
					valid[i][j]=false;
					path.push(newTerm);
					check=true;
				    answer=true;
				    break;
				}
                                if((x=='d'||x=='g')&&here){
                                    x++;
                                }
				x++;
			}
			if(answer)
				break;
		}
		return check;
	}