implemented level editor script