Abstract the logic as much as possible into classes outside of main.js. Take the music controller as an example
Use consistent naming across the application. Especially the game loop terminalogy. Currently terms: game, round, break, gameEnd, gameStar, preGame, lobby, ... are redudant and easily to misunderstand
Suggestion