public void move() {
        if (coordX + moveXcoord > 0 && coordX + moveXcoord < game.getWidth() - WIDTH) {
            coordX = coordX + moveXcoord + moveXcoord;
        }
        if (coordY + moveYcoord > 0 && coordY + moveYcoord < game.getHeight() - HEIGHT) {
            coordY = coordY + moveYcoord + moveYcoord;
        }

    }