The problem is that the check to see if we're at the end is never reached. I