I'm not sure if it was working as intended. The ghost made me run off the edge but I didn't die and after hitting space 5 times it still says I escaped.