Updated loco state processor to work with speed and direction, YAY