Model game 2048, added mode flag to state.