tick_tock implementation

traded the game loop for a timer