Updated main to call the engine thread :D