public void move() {
            if (y + ya > 0 && y + ya < game.getHeight() - HEIGHT)
                y += ya;
            if (x+xa > (game.getWidth()/2) && x + xa < game.getWidth() -WIDTH)
                x -= xa;
        }