Added some business logic for battles.