for some reason, when I try to leave the puzzles, they simply don't leave, idk if I am doing something wrong.
Not sure what you mean. Do you mean that you can't leave the rooms after entering them?