Convert our good Captain to a State Machine

Seems to work really well. Do like.