changes to if loop in motor threads not while, not helping much