Updates with some stuff rearranged. Code now functional.

Known issue: some submissions produce 'NoneType' object has no attribute '__getitem__'. Currently I just have the bot skip over those.