Add beginnings of a battle state machine. Also ran gofmt