moved incrementing MainClock.ct from render to update