Finite State Machine in Go