def robot_turn(direction, instruction_list):
    """ Turns robot.  Returns direction."""
    if instruction_list[1] == 0:
        direction -= 1
    elif instruction_list[1] == 1:
        direction += 1
    else:
        print("And I oop....robot_do_it (2)")
    direction %= 4

    return direction