revamped logic on the data of the states
finished state nicknames with a better code format