Hello Katie,

Implementing a finite state machine is fairly straight forward.
First you need a variable that represents your state. In your case just take an int and set it a value from 1..10,...