Click on the door to see whether the ghost is behind!
I had a book with this sort of project in which was written in python. I utilised this to convert the python code into scratch, with some extras thrown in. The original game asked you what door to go in, now you click the door.