Homework6

Confusing event occurs, it seems the loop keeps going despite stopping
condition satisfied