adding minute check to animate me
updating time function in animate