time delay almost working.
Biggest problem is that the time variable stays consistent through while loop
will need to stop using variable for time and call to time each time individually