updated the timer

when i talk about timer it does not mean axactly in the timer function, it means to create some way of counting the time, check line 71 and 72 to understand the logic