Im loading a level, and doing a wait(1); after loading it. I just didnt include that code or the other things im doing in main as they didnt seem pertinent to the problem.