added game loop timing and logging