public void update() {
        int dist = (int)((step + (timer/(float)TIMER_MAX)) * (Matrix.CASE_SIZE / NB_STEPS));
        switch(dir) {
        case UP:
            distMove.setY(-dist);
            break;
        case DOWN:
            distMove.setY(dist);
            break;
        case LEFT:
            distMove.setX(-dist);
            break;
        case RIGHT:
            distMove.setX(dist);
            break;
        case NONE:
            distMove.setX(0);
            distMove.setY(0);
            break;
        }
    }