testability move of code from main to starrealms.js
testability move - missed main.js changes