cleaned up some code

and fixed an issue updating individual motor speeds when they're
members of a gang