public void checkBulletOutLayout() {

        if (bullet.isVisible() && shooting) {

            if (!(bullet.getX() >= 0 && bullet.getX() <= Game.WIDTH)) {
                shooting = false;
                bullet.setVisible(false);
                bullet.setBulletDir(0);
            } else if (!(bullet.getY() >= 0 && bullet.getY() <= Game.HEIGHT)) {
                shooting = false;
                bullet.setVisible(false);
                bullet.setBulletDir(0);
            }
        }

    }