createState creates a State such as MarioState depending on the state-type
change toString in MarioState. fixed equals in StateActionPair