fixed access to the `game.data` object from the update function (thanks Aaron)