added battle.cpp