for battle algorrithm