Updated MainLoop

MainLoop Is now a global variable that can be muted with the M key