You still need a main function. The main function is the function that is called by the engine at startup. You'll have to put everything in there you wanna be happening at startup.