Added .equals method to ActionStatePair.