Completed battle state machine class.