Fix concurrency issue

The thread starting if the game was running used to launch befor the
function returning that value had been assigned