Made game work with requirejs