changed from var and this. to game.prototype