@Override
    public void processExit(String exitValue, Vertex vertex) {
        super.processExit(exitValue, vertex);
        if (exitValue.equals("true")) {
            //FIXME vyhod chybovu hlasku
            if (leader != null) {
                Dialog.showError("Leader had been already choosed.");
                player.stop();
                return;
            } else
                leader = vertex;
        }
        //FIXME vyhod chybovu hlasku
        if (deadProcessCount == player.graph.vertices.size()) {
            if (leader == null) {
                Dialog.showError("There is no leader");
                player.stop();
            }
        }
    }