Created an object that handles the main thread
Added automatic pel spawning