transition

Attempts to transition to a new state based on the given action.

Return

Result indicating success/failure and the states involved

Parameters

action

The action to perform