changed Parser to work with parameters from game-class, functions dynamically