@Override
    public void updatePosition(float delta) {       
        position.x+=velocity.x*delta;
        position.y+=velocity.y*delta;
        setPosition(new Vector2f(position.x,position.y));
        
        //reset position of background to loop
        if(position.x<=-BACKGROUND_WIDTH){
            setPosition(new Vector2f(BACKGROUND_WIDTH-5,0));
        }
    }