[WIP] Update training loop and state machine to control Plexon and send
correct codes as behavioural states change.