Scary Figure

I was playing minecraft at night and i was wondering around because i was bored and i found an abandoned house and i went in it and i saw a house with a chest and bed i opened the chest and found apples and a wooden sword so after that i was going to get out of their but the door was blocked by dirt i punched the dirt but it didn't break.

I tried to break the wood but it didn't work too i message then popped up on my screen saying YoU WiLl NeVeR EsCaPE the only option i had is to go to bed so i went to bed.

When my i woke up i was in a dark cobblestone room then a zombie came out of no were so i killed it with my wooden sword when i killed the zombie a portal spawned i went through the portal when i came out the portal there were no trees and the sky was plain white.

I roamed around until i saw a village i walked up to the village when i got their i saw no villagers i walked around looking for some villagers until some scary and ugly ass figure came out of no where and killed me i left the game confused what the hell happened.

Was it a glitch or a joke i don't know the end.