Working prelim multiplayer code using threads! Export and cleanup next