it was thought that centuries before , the planet had stopped spinning , so that the sun only ever hit one half of the planet , and cast the rest into darkness , lit only by the intermittent light of the moon , when it was not hiding behind cloud .