public void movement() {
        left = input.getLeft();
        right = input.getRight();
        shoot = input.getShoot();

        if ( (xShip < (window.getWidth() - ship.getWidth()/3 - 5))){
            if (right) {
                xShip += moveSpeed;
            }
        }
        if (xShip >= 0 ){
            if (left) {
                xShip -= moveSpeed;
            }
        }
    }