Moved god dictionary to top of file as it is used outside of if block it was originally defined in