the 2nd law of thermaldynamics says that energy transfer from high to low or from (hot to cold)  but the thermal energy from your room vwent to your shoe and then the thermal energy from your shoe went to the candy bar and cause its to melt so your brother did not play a trick on you, you just did not caculate the thermal heat around your shoe, lol