I've noticed that a lot of day/night cycle projects, even if they include moon phases, always depict the moon as being opposite the Sun, which is obviously not the case. I've fixed that by having the moon run slightly slower than the Sun, and having its phase be determined by its position relative to the sun. The simulation starts just before an eclipse to show this.