If statements added for the driveMode variable to control the mode we are in