turn [motor A] on for (1) seconds
turn [motor] on
turn [all motors] off
set [motor B] power to (2)
set [motor B] direction to [reverse]
wedo!set light color to (C:80, S:10, B:10)
when distance [lt] (20)
wedo!when tilted [right]
tilted [left]
wedo!tilt angle [down]
wedo!distance