It's just passing up the part of the program where you want it to receive input. You need to put that part in a loop.