handle onDestroy
add battle observer
read setting from config
regist unit to scheduler