@Override
    public void update(GameContainer gc, StateBasedGame sb, float delta)
            throws SlickException {

        if (gc.getInput().isKeyDown(Input.KEY_LEFT)) {
            owner.setVelocity(new Vector2f(-speed*delta, owner.getVelocity().y));
        }

        if (gc.getInput().isKeyDown(Input.KEY_RIGHT)) {
            owner.setVelocity(new Vector2f(speed*delta, owner.getVelocity().y));
        }

        if (gc.getInput().isKeyDown(Input.KEY_UP)) {
            owner.setVelocity(new Vector2f(owner.getVelocity().x, -speed*delta));
        }
        if (gc.getInput().isKeyDown(Input.KEY_DOWN)) {
            owner.setVelocity(new Vector2f(owner.getVelocity().x, speed*delta));
        }

        owner.updatePosition(delta);
        owner.setVelocity(new Vector2f(0,0));
        

    }