public void setCellsFromLoad(String input) {
        grid.reset();
        if (player.getPlayer() != 1) {
            player.changePlayer();
        }
        player.resetPlayer();
        turn.resetTurn();
        int tmp = gv.getRowSize()-1;
        String inputWithoutWhitespaces = input.replaceAll("\\s+", "");
        for (int j = 0; j < gv.getRowSize(); j++) {
            for (int i = 0; i < gv.getColSize(); i++) {
                char c = inputWithoutWhitespaces.charAt((j * gv.getColSize()) + i);
                int val = Character.getNumericValue(c);
                if (val != 0) {
                    grid.setCell(tmp, i, val);
                    turn.incTurn();
                }
            }
            tmp--;
        }
        notifyObservers();
    }