Chapter 13 - adding the moon rotation

When I tried adding the code for the moon rotation, the code editor froze. I’ve tried going through my code, but I can’t see why the moon won’t show and the orbit behave properly…

// Paste your code here