@Override
    public void updatePhysics() {
        super.updatePhysics();
        clock++;
        if(clock%(2*30) == 0) {
            vx = - vx;
            updateStateBasedOnVelocity();
        }
    }