@Override
    public String perform(Company which) {
        int n = Random.getInstance().randomInt(6);
        String in = JOptionPane.showInputDialog(null, "You have landed on the Patents tile. "
                + "Enter 0-5 to try your luck!", "Patents Tile", JOptionPane.QUESTION_MESSAGE);
        try {
            int val = Integer.parseInt(in);
            if (val == n) {
                which.incrPatentCount();
                return "You are in luck today. You have just acquired a new patent.";
            }
        } catch (NumberFormatException ex) {
        }
        return "hard Luck better try next time! (" + n + ")";
    }