Added encoding of type to GameStateDataMessage