add function startGame() in main.js