public int searchUpDown() {
        if (y % BOX_SIZE != 0) {
            for (int a = 0; a < MOVEMENT_SMOOTHING; a++) {
                if ((y + a) % BOX_SIZE == 0) {
                    return y + a;

                }
                if ((y - a) % BOX_SIZE == 0) {
                    return y - a;
                }
            }
            return -1;
        }
        return y;
    }