Tap the blocks. It is a bit buggy. Click the trash can to delete your code. Click the green flag (not the real one) to run the code. NOTE: The script runs all at once.
It only took me about 15 minutes to make this.