Remove debugging code from Main class
Use list instead of array inside NBTList class