parser add as a class method
parser add as a class method into the matchsticksgame class
parser tests added