move several parameters to resources.js
seperate global variables
send Settings to MatchWorker