public void Draw(Graphics2D g2d) {

        //*******************************************
        //text coordinates
//        g2d.setColor(Color.white);
        g2d.drawString("Enemy car speed: " + this.getSpeedY(), 950, 30);
        // If the car is raceWin.
        //image for winnging
        if (raceWin) {
            g2d.drawImage(carWonImg, x, y, null);
        } // If the car is crashed.
        else if (crashed) {
            g2d.drawImage(carCrashedImg, x, y + carImgHeight - carCrashedImg.getHeight(), null);
        } // If the car is still in the space.
        else {
            // If player hold down a W key we draw car fire.

            //removed because it isn't a car car
//            if(Canvas.keyboardKeyState(KeyEvent.VK_W))
//                g2d.drawImage(carFireImg, x + 12, y + 66, null);
            g2d.drawImage(carImg, x, y, null);
        }
    }