how do I get the good ending I moved the shelf and was still killed
You have to block the other door to that room fast.