sweet battle algos