Parsons problem from Craig'n'Dave

Dungeon master

Drag the code statements putting them into the correct order in the solution area. Select Get feedback when you have finished. If the solution area turns green, it's correct.
Remember to use correct indenting after def, if, match, case, while and for statements.

Write the selectioms in the following order: automatic pass, critical fail, critical success, any other check.