added additional method to levelparser
refactory and implementation of the class Level