Mind the Trap - JavaScript

The level “Mind the Trap” requires the hero to pick up flags, but the level doesn’t have the ability to put down flags, there are no flags.

You must click the submit button for flags to be available. There are no flags when you click run.

Why can’t you use flags when you run? That makes me have to wait a day in order to use submit button again if I do a replayable level.