fixed null pointer exeption in level array