You are creating the local function inside a while true do loop, and anything outside that loop will not be able to access that function. You will not be able to call the runGame function, but attempting to call it will not throw any error. It will just do nothing.
Here’s a corrected version of your code:
local function runGame() -- notice how this is not inside any while true do loops?
-- contents of your function
end
while true do
local Success, Error = pcall(runGame)
if not Success then
warn("An error has occured in the intermission loop: " .. Error)
task.wait(5) -- A better and more accurate alternative to wait()
end
task.wait(60)
end