Learn to Code 2: 3 Gems, 4 Switches hangs...

I am having trouble getting the puzzle to reload -- the gems and switches are in pixel form and never fully load into the maze. I've tried resetting the page and force closing the app. I can't get my code correct on the first try, so I'm out of luck. Using an iPad Air 2.

Learn to Code 2: 3 Gems, 4 Switches hangs...
 
 
Q