There is potential for a softlock that I think I've discovered:
The game seems to check every turn, if you have adjacent tiles to go to, and if there are none, it prompts a gameover. However, if all adjacent tiles are treasure chests, but you don't have a key, the game doesn't recognize that it's effectively a gameOver and you have to refresh the page to restart.