add initial check to getTransition() to see if the states are already equal