Rename all instances of "match state" to "match period"