[Demonstration 1]

[Buggy Method]
public static double[] getCoords() {
    //requestSingleUpdate and then call this from the onResume status
    return coordinates;
}

[Buggy Hunk]
public static double[] getCoords() {

[Patch]
protected double[] getCoords() {

[Demonstration 2]

[Buggy Method]
public static void setCurrentCheckpointText() {
    Checkpoint currentCheckpoint = currentRoom.getCurrentCheckpoint(RoomListActivity.firebaseAuth.getCurrentUser().getUid());
    String currentHint = "";
    if (currentCheckpoint != null) {
        currentHint = currentCheckpoint.getHint();
    } else {
        currentHint = "Game completed";
    }
    txtCurrentHint.setText(currentHint);
}

[Buggy Hunk]
public static void setCurrentCheckpointText(){

[Patch]
public void setCurrentCheckpointText(){

[Demonstration 3]

[Buggy Method]
@FXML
void icheck(ActionEvent event) {
    //CHECKING
    if (!next) {
        //EMPTY
        if (answer.getText().isEmpty()) {
            //state is a label
            state.setStyle("-fx-text-fill: #000000;-fx-alignment: center;");
            state.setText("Writte at least one letter !");
        } else {
            //NOT EMPTY AND CORRECT
            if (answer.getText().toLowerCase().equals(dictionary1.get(currentImage))) {
                next = true;
                submit.setText("Next");
                state.setStyle("-fx-text-fill: #00C853;-fx-alignment: center;");
                state.setText("You guessed this word !");
                answer.setDisable(true);
                answer.setDisable(true);
                Progress.setProgress(Progress.getProgress() + 0.2);
                score += 15;
                //sound effects
                music(1);
            } else {
                //NOT CORRECT
                score -= 3;
                state.setStyle("-fx-text-fill: #D50000;-fx-alignment: center;");
                state.setText("wrong, guess again !");
                music(2);
            }
        }
    } else {
        //NEXTING AND DICTIONARY IS USED UP
        if (used.size() == dictionary1.size()) {
            submit.setDisable(true);
            word.setText("Congratulations!\nyou finished this category!");
            word.setAlignment(Pos.CENTER);
            word.setTextAlignment(TextAlignment.CENTER);
            word.setFont(Font.font("", FontWeight.BOLD, 25));
            answer.setDisable(true);
        } else if (Progress.getProgress() == 1) {
            //DICTIONARY STILL AND PROGRESS BAR USED UP 5LEVEL OVER°
            //state is the label
            submit.setText("Check");
            state.setStyle("fx-text-fill:#000000;");
            state.setText("You Finished this Level !");
            currentLevel++;
            answer.setDisable(false);
            level.setText("level: " + currentLevel + "/" + size);
            next = false;
            Progress.setProgress(0);
            deletingImage();
            try {
                creatImage();
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        } else {
            next = false;
            submit.setText("Check");
            answer.setDisable(false);
            state.setText("");
            deletingImage();
            try {
                creatImage();
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }
    }
    answer.setText("");
    lblscore.setText(score + "Points");
}

[Buggy Hunk]
if (used.size() == dictionary1.size()) {

[Patch]
if (used.size() == dictionary1.size()-1) {