source code of vanneBattle