Resting detection.

Fixed a bug in determining whether or not the "car" is resting on the platform. We were assuming a1 is a wheel and a2 is the platform, but half the time it's the opposite.