public void act() {
        switch (action) {
            case 0:
            case 1:
            case 2:
            case 3: {
                move(action);
                break;
            }
            case 4:
            case 5:
            case 6:
            case 7: {
                attack(action-4);
                break;
            }
            case 8: {
                attack(-1);
                break;
            }
        }
        action = -1;
        lastAtt--;
    }