Stop side stepping the issue. Your god orders people killed. End of story.
As another individual stated: "Your ignorance of the Bible is breathtaking ... "
Do you understand that those people deserved to be killed?
Do you "have a problem" with those people being killed?
You could benefit yourself by examining a standard text on systematic theology. Perhaps such an effort will help you unravel some of your confusion.
You may not agree with everything but at least you might understand it.
God bless you.