Statemachine on Go