public void ResetPlayer() {
        
        //booleans to control win and lose conditions
        raceWin = false;
        crashed = false;

        //place the car on the canvas
        x = (int) (Framework.frameWidth * 0.20);
        y = (int) (Framework.frameHeight * 0.70);

        //speed of the car
        speedX = 0;
        speedY = 0;
    }