Short answer: that's actually the (or, a) definition of temperature. By definition, object A is at higher temperature than object B if A spontaneously transfers heat to object B when they are placed in thermal contact. So you can leave entropy out of it entirely.
Long answer: Here's how entropy gets involved. Forget about cracked and solid ice or anything macroscopic for a while. Think about some really simple system like, say, electrons in an atom. Each electron can be in one of several quantum states, and the energy of the atom $U$ depends on how many electrons are in each state.
For any amount of energy the atom (or whatever) can have, there may be several different ways to arrange electrons to give it that energy. The number of ways for a system to have a certain energy is called the multiplicity, denoted $\Omega$, and it is a function of energy. Entropy $S$ is (proportional to) the logarithm of $\Omega$, and is also a function of energy.
Now, imagine two systems that can exchange bits of energy between each other. Say system A has 20 energy and system B has 10 energy, so the multiplicity is $\Omega_A(20)\times\Omega_B(10)$. What's likely to happen with this energy? Well, consider this:
- If system A gives a unit of energy to system B, the multiplicity becomes $\Omega_A(19)\times\Omega_B(11)$, and the entropy is $S_A(19) + S_B(11)$
- Or if system B gives a unit of energy to system A, the multiplicity becomes $\Omega_A(21)\times\Omega_B(9)$, and the entropy is $S_A(21) + S_B(9)$
- Or maybe nothing happens, and the multiplicity is still $\Omega_A(20)\times\Omega_B(10)$ and the entropy is still $S_A(20) + S_B(10)$.
Assuming that each individual final state is equally likely, whichever one of these multiplicities - or entropies - is larger, that's the outcome that's going to be more likely. Or to put it another way, the energy transfer that increases the total entropy more is more likely to happen. (That's the second law of thermodynamics, by the way.)
In most realistic situations, one option is overwhelmingly more likely than the others. For example, if the first option (A loses energy to B) is the most likely, that means (among other things) that
$$S(U_A + \Delta U) + S(U_B - \Delta U) < S(U_A) + S(U_B)$$
but doing a bit of calculus on that gets you
$$\begin{align}
S(U_A + \Delta U) - S(U_A) &< S(U_B) - S(U_B - \Delta U) \\
\lim_{\Delta U\to 0}\frac{S(U_A + \Delta U) - S(U_A)}{\Delta U} &< \lim_{\Delta U\to 0}\frac{S(U_B) - S(U_B - \Delta U)}{\Delta U} \\
\frac{\partial S_A}{\partial U_A} &< \frac{\partial S_B}{\partial U_B}
\end{align}$$
Similarly, if the second option (B loses energy to A) is most likely, you can find that
$$\frac{\partial S_A}{\partial U_A} > \frac{\partial S_B}{\partial U_B}$$
And if the third option (no energy changes hands) is most likely, you can show (either by elimination or some similar calculus) that
$$\frac{\partial S_A}{\partial U_A} = \frac{\partial S_B}{\partial U_B}$$
Clearly, this quantity $\partial S/\partial U$ is related to whether a system gains or loses energy to another system. Systems with smaller values of $\partial S/\partial U$ will tend to lose energy to systems with larger values. But wait! That should remind you of the definition of temperature from the top of my post. And indeed, we define temperature as the reciprocal of this quantity:
$$\frac{1}{T} = \frac{\partial S}{\partial U}$$
In other words, the reciprocal of temperature represents the "capacity" of one unit of energy to increase the entropy of a system. If a system is hot, then $1/T$ is small, and that means each unit of energy is "contributing" relatively little entropy. Given the tendency of entropy to increase, a hot system will tend to pass off its energy to other systems where each unit will have more of an effect on the overall entropy.