Adding unit sorting by "y" to battle state