Appreciate the huge feedback!
I admit that the demon does not pick the dosas by checking the remaining time on them and instead just picks whichever matches with the dish first in the list of three. I just wasnt able to add a better mechanism of dish management before the deadline! Thanks for Playing :D