Coding the GameObjectSharer class