Fixed the constructor of the level class