error checked for battles