Update main.cpp

Pointerified parameters for switchState and setMotorSpeed functions.