added graphics as separate thread ( because of some stupid force of event handling in SDL windows) which makes the program slower. Also added a thread to update the timer while running a new game