Hi, thanks for the comment! We're sorry that you're frustrated. The game ends when the only move available is to undo your earlier move. At the moment, the game doesn't allow moves that can probably create an endless loop. However, we're working hard to develop a more sophisticated approach in this regard.