public void Move(int row, int col){
		if ((row >= size)|| (col >= size)) return;
		if (sum >= minimalSum) return;
		if ((row != size-1)||(col != size-1))		
		{
			for (int i=0;i<=1;i++)
			{
				sum = sum + matrix[row][col];
				Move(row + moveRow[i], col + moveCol[i]);
				sum = sum - matrix[row][col];
			}
		}
		else{
			if (sum < minimalSum){
				minimalSum = sum;
				System.out.println("" + minimalSum);
			}
		}
	}