Added countdown functionality to the web page. Game restarts after the timeout