@Override
    public void minePlacer(int wIndex, int hIndex) {
        int i;
        int j;
        for (int iter = 0; iter < this.bombNumber; iter++) {
            i = (int) (Math.random() * (width));
            j = (int) (Math.random() * (height));
            if (i != wIndex || j != hIndex) {
                State s = (State) this.getState(i, j);
                if (!State.isAMine(s)) {
                    s.setValue(Temperament.explosive);
                } else {
                    iter--;
                }
            } else {
                iter--;
            }
        }
    }