1var GM; 2 3// Wait till the browser is ready to render the game (avoids glitches) 4window.requestAnimationFrame(function () { 5 GM = new GameManager(8, KeyboardInputManager, HTMLActuator, LocalScoreManager); 6}); 7 8