https://www.puzzlescript.net/play.html?p=e7d88f3c5eaee278926d1748420cb380
Here's a link with the dev exit disabled.