Revised visual state transitions so that they are associated with state pairs, rather than individual states