Move LevelException to a separate class