class BreakOutOfALoop(Exception):
    pass


class ContinueLoop(Exception):
    pass


_brickConfiguration = {
    'wheel-diameter': 5.6,
    'track-width': 18.0,
    'actors': {},
    'sensors': {
        '1': Hal.makeTouchSensor(ev3dev.INPUT_1),
        '2': Hal.makeGyroSensor(ev3dev.INPUT_2),
        '3': Hal.makeColorSensor(ev3dev.INPUT_3),
        '4': Hal.makeUltrasonicSensor(ev3dev.INPUT_4),
    },
}
hal = Hal(_brickConfiguration)


def run():
    while True:
        if (0 == 0) and True:
            break
        hal.waitFor(15)
    hal.waitFor(500)
    while True:
        if hal.isPressed('1') == True: