The code can't run continual, can only print few words, why?

try commenting out code until it starts to run in order to isolate that cause of the problem