How about simply having a way to end each game? When you win, let the game end--no more moves, just a splash screen that says you won.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.