And why can't I have While or Repeat commands in my functions? Because I do have a few While commands but I see no harm done.
Because they're stopping program execution going back to the main while loop which calls both functions, and is causing the program to not do both things.