Modified Random Battle code to prevent unfair teams.