I'm making a multiplayer game in Node.js using Socket.js. Between the games I want users to be able to place their bets before a counter is ticking down. After that an incrementing number should pop up on the screen which eventually stops and then the counter and period to place bets comes back. I'm struggling to find anything on how to documentation or help on how to do something like this, where you are switching states/periods in a game.