public Coord getCoordFromValue(int value) {
        Coord c = null;
        for (int i = 0; i < width; ++i) {
            for (int j = 0; j < height; ++j) {
                if(getSquareValue(i, j) == value) {
                    if(c != null) {
                        System.out.println("There is multiple occurences of value " + value + " in matrix " + this);
                    }
                    c = new Coord(i, j);
                }
            }
        }
        return c;
    }