I saw this movie on tv in the late 80s or 90s ISO not sure how old it could be. It was about a group of people trapped in a maze of rooms that were all trying to kill them in some way. They had to figure out how to escape each room. Some died and some got separated from the group. Sometimes they woul revisit the same room. Bi don’t remember how it ended.