Changed the example listener sm to transition based on the outcome rather than the possible transistions