requirejs adjustments, implemented scroll function, introduced gameState object