added old code for detecting a stalled motor

maybe this helps finding a proper way to stop a robot