battle start & battle end detection