Done output bug, loop bug.    Remaining: logic bug, and if condition