changed the way the setTimeout function's interval variable runs
Merge pull request #19 from SamMatthews9/looptime

changed the way the setTimeout function's interval variable runs