Corns can survive very well on room temps. So even without the heating, he could have lived. He very well could have gotten impacted from the sand. He also could have been sick, and malnurished. Petstores don't always take care of there animals, you know. Sorry to hear though! Invite him over, and encourage him to learn more about snakes.