change main.c to get lighter :D

I would like to have implemented theads, but it was not stable, then I divided the operation of the redraw to give the feeling that the program flows better. On Odroid-U3 (Mali GPU) the original code use only 25% of CPU and pause every 1 second. CAMMIL is very NICE :D