debuged battle funtion #2