added most of the logic for timing and display

looks like a state machine i work 2 hard