Maze
The target can use an action to attempt to escape, making an Intelligence saving throw. On a successful save it escapes and the spell ends. A creature with Labyrinthine Recall (or a similar trait) automatically succeeds on its save.
When the spell ends the target reappears in the space it occupied before the spell was cast, or the closest unoccupied space if that space is occupied.