This if statement you got right
if (buttonState = 1) { //Driver mode 1
...
...
All the others you did get wrong
E.g.
if (buttonState = 2); { //Driver mode 2
...
...
The semi-colon terminates the if statement and hence the code block after it will unconditionally be executed.