Beginning of automatic gear shifting, new instance variables for Solenoid gear and Encoder