Game State
In order to keep track of components in the game such as the players & their teams, the board & tokens occupied, sequences so far, whose turn it is, etc we have a Game state. For my Sequence application, the Game state is simply a JavaScript object that keeps track of everything in the game. Whenever actions in the game occur (ex. players take turns, new player joins, etc) the Game state is updated. The game server is responsible for updating the Game state and emiting it back to the clients. The only responsibility on the client side is to render the UI components based on the game state.