prototyping battle functions