Adaptation of Truman's AI logic; added TODO to all scan methods; revision and continuation still necessary