Moved some code out of setclock.html to the tools script in order to prepare for next game to be added (readclock)