Added ISerializable interface to save state states

state states lol