package com.github.notyy.reafactoring.gameBoard;

import java.util.ArrayList;
import java.util.List;

public class MineSweeper {
    List<int[]> theList = new ArrayList<int[]>();

    public List<int[]> getThem() {
        List<int[]> list1 = new ArrayList<int[]>();
        for(int[] x: theList){
            if(x[0] == 4){
                list1.add(x);
            }
        }
        return list1;
    }
}

@@ -318,9 +318,9 @@
  == 
-4
+1
 )%7B%0A 
@@ -399,11 +399,245 @@
 1;%0A    %7D
+%0A%0A    public boolean isFlaged(int x, int y) %7B%0A        List%3Cint%5B%5D%3E list2 = getThem();%0A        for(int%5B%5D i: list2)%7B%0A            if(i%5B1%5D == x && i%5B2%5D == y)%7B%0A                return true;%0A            %7D%0A        %7D%0A        return false;%0A    %7D
 %0A%7D%0A

add a new isFlaged function