code refactor, partialy added load game parameters from xml