private synchronized void handleNewPuzzle(){
        int nextPuzzle = newPuzzleReader();
        if (nextPuzzle != currentPuzzle) {
            currentPuzzle = newPuzzleReader();
            puzzleNumber.setText("Puzzle #" + currentPuzzle.toString());
            if (!(newPuzzleNumber.getText().isEmpty())){
                newPuzzleNumber.setText("");
            }
            puzzleNumber.updateUI();
            clearTable();
        }
    }