added some functions to game object