public void ResetPlayer() {
        raceWin = false;
        crashed = false;

        //place the car on the canvas
        x = random.nextInt(Framework.frameWidth - carImgWidth);
        y = (int) (Framework.frameHeight * 0.70);

        speedX = 0;
        speedY = 0;
    }