public void update_pf_moving() {
        if (path == null)
            return;
        if (JSBotUtils.isMoving()) return;

        if (path_step < path.size()) {
            if (myLastCoord.equals(path.get(path_step))) {
                path_moving = false;
                path_step++;
            }
        }
        if (path_moving) return;
        if (path_step < path.size()) {
            if (path.size() - path_step == 1 && path_interact_object != null) {
                //click, (261, 284), (-4062515, 1117484), 3, 0, -1725142871, (-4062515, 1117495)
                wdgmsg("click", JSBotUtils.getCenterScreenCoord(), path_interact_object.position(), 3, 0, path_interact_object.id, path_interact_object.position());
                path_step++;
            } else {
                path_moving = true;
                Coord togo = path.get(path_step);
                wdgmsg("click", JSBotUtils.getCenterScreenCoord(), tilify(togo), 1, 0);
            }
        } else {
            path = null;
            path_step = 0;
            path_moving = false;
        }
    }