Updated code for VBS for the game.