Here you go:
Note, that I moved "Set currentSentence" action into the "createSentence" function.
Edit: also added 1px of transparent space around flags to fix the outline. Please re-download the file.
Thanks so much! I'm going to study it a bit more. Very happy to hopefully learn how to do this efficiently, as it will be relevant in a lot of the content I create. The two separate arrays is a really bad way to work for bilingual educational content, since I would have to manually maintain synchronization across two separate files whenever changes are made, even something as simple as re-ordering.