state class

wip on state class and transition method to get it to work… state
switching still buggy. in other news: processing herjasi “no such file
or directory” so I had to save as… etc to get the file saved.