Medic School Help?

So I was doing medic school and for some reason it completes itself on its own, with only the starting code there. Why is this bugged? thanks

Hi @Andres_Martin. Can you give me the link to the level so I can see if the same thing happens to me too?

Link: CodeCombat - Coding games to learn Python and JavaScript
I think you just got a very lucky seed where the only potions were good ones and your hero survived.