#include <superkarel.h>

void run_mile();
void turn_back();

int main() {
    turn_on("empty.kw");

    // if (!facing_north() && !facing_south()) {
    if (not_facing_north() && not_facing_south()) {
        turn_left();
    }

    while (true) { // while (1) {
        run_mile();
        turn_back();
    }    

    turn_off();

    return 0;
}

void run_mile() {
    while (front_is_clear()) {
        step();
    }
}

void turn_back() {
    turn_left();
    turn_left();
}


