Made the level array size variable