private boolean addFire(int x, int y) {
        int result;
        for (int i = 0; i < fires.size(); i++) {
            if (fires.get(i)[0] == x && fires.get(i)[1] == y) {
                String[] options = new String[] {"OK", "Give another point"};
                result = JOptionPane.showOptionDialog(null, 
                        String.format("Fire Source exists in (%d, %d)", x, y), 
                        "Fire exists", JOptionPane.DEFAULT_OPTION, 
                        JOptionPane.PLAIN_MESSAGE, null, options, options[0]);
                switch (result) {
                    case 0:
                        return true;
                    case 1:
                        return false;
                    case JOptionPane.CLOSED_OPTION:
                        return false;
                    default:
                        return false;
                }
            }
        }
        fires.add(new int[]{x,y});
        firesList.addElement(String.format("%d, %d", Integer.parseInt(tFX.getText()), Integer.parseInt(tFY.getText())));
        result = JOptionPane.showConfirmDialog(this, "Add more Fire Sources?", "More Sources", JOptionPane.YES_NO_OPTION);
        switch (result) {
            case JOptionPane.YES_OPTION:
                return false;
            case JOptionPane.NO_OPTION:
                return true;
            case JOptionPane.CLOSED_OPTION:
                return true;
            default:
                return true;
        }
    }