Add a pygame clock into the main loop.