private void checkGameIsSolved() { if (board.isSolved() == false) { return; } // clear UNDO stack steps.clear(); // stop the timer pauseTimer(); // stop showing combination list combinationView.update(new Group(Group.NON_ID)); // prevent user input boardView.setOnKeyPressed(null); // congratulate user boardView.congratulate(); // pop up alert AlertFactory.createInfo("SUCCESS", null, "Congratulation! You are genius!").showAndWait(); }