public boolean setRow(int fromX, int fromY, int whichStep) {
		boolean ret = false;
		for (int i = fromX; i < 8; i++) {
			if(getField(i, fromY).isNotVisited()){
				setValueOfField(i, fromY, whichStep);
			}
			if(!getField(i,fromY).isNotBlocked()){
				break;
			}
			if(getField(i, fromY).isEndField() == true){
				ret = true;
				break;
			}
		}
		for (int i = fromX; i >= 0; i--) {
			if(getField(i, fromY).isNotVisited()){
				setValueOfField(i, fromY, whichStep);
			}
			if(!getField(i,fromY).isNotBlocked()){
				break;
			}
			if(getField(i, fromY).isEndField() == true){
				ret = true;
				break;
			}
		}
		return ret;
	}