Visual feedback of failed game rounds

When the student plays a level in a game, a progress bar is displayed in many games. It’s green as long as the game round is about to be completed, but turns red if the student does something wrong and the round will be marked as failed.

The game round is going well and the student may be on the way to complete the game level.
The game level will be marked as failed this time, but the student can finish the game round.