Update main.js

Bug fixed about restarting game.