Update main.js

changed stop on win to reset and continue. 
added variable for timer delay.