Add integer encoding/decoding to game_message class.