demo: moved game width and height from global scope