unified running the main program with running the draw loop into the same loop() function