help to identify a movie that is from the late 80’s or early 90’s.

I remember a scene of a child in a hall opening a door from which light comes out. In the room he finds toys flying, among them a Star Wars Tie Fighter.

In another scene the child is seen running through a maze.

Answered question