https://student.craigndave.org/wp-content/uploads/2018/08/AQA-A-Transition-functions-and-state-transition-diagrams-600x338.png