removed compare function from state class, working on creating transition table