added method for ending the battle
Merge pull request #6 from student-007/ForXcode42

added method for ending the battle