private boolean validPosition(int i, int j) {
            System.out.println(i);
            System.out.println(j);
            return i >= 0 && i < model.getHeight() && j >= 0 && j < model.getWidth();
    }