public boolean isCandidate(Patch p) {
        List<Integer> key = Arrays.asList(p.x, p.y);
        Patch patch = candidateMap.get(key);
        if (patch == null) {
            return false;
        }

        return true;
    }