The bible is a moral book

Many of my opponents initial arguments come down to one point. God killed, or condoned the killing of, children.Proverbs 22:6 "Train up a child in the way he should go; even when he is old he will not depart from it."1 Timothy 5:8 "But if anyone does not provide for his relatives, and especially for members of his household, he has denied the faith and is worse than an unbeliever."Proberbs 1:8-9 "Hear, my son, your father's instruction, and forsake not your mother's teaching, for they are a graceful garland for your head and pendants for your neck."At the time of Noah's Flood, these verses had not yet been written. It is clear, however, that God holds the parents of children accountable for them. If a child were to die in Noah's Flood, it would be at the fault of their parents.2 Samuel 12:21-23 "His attendants asked him, “Why are you acting this way? While the child was alive, you fasted and wept, but now that the child is dead, you get up and eat!” He answered, “While the child was still alive, I fasted and wept. I thought, ‘Who knows? The Lord may be gracious to me and let the child live.’ But now that he is dead, why should I go on fasting? Can I bring him back again? I will go to him, but he will not return to me.”Here we see David is assured that he will go to his son after his death. It would only be logical to assume that God will pardon those who have not yet reached a point or age of accountability in their lives. Even if God did not save the dead children, however, would he be in the wrong? Adam turned his back on God in the beginning, and the seed of adam must bear his curse. Is God not already merciful for giving us a chance? God could let us all die and still be perfectly just in doing so - we turned our backs on him.In 2 Thessalonians 2:9-12 there's a story of God cursing a people. Keep in mind, again, that God doesn't owe us anything. We turned from him so he has no reason to pardon anybody at all, yet he chose to die for us. These people were stuck in their ways, and refused God. If you turn from God, he will not beg for your attention. In more cases than one he shows us he will not try to stop you if you try to rebel and run away. He will, however, expect reparations for such a course of action. If you really want to pursue the ways of the world, he will let you to succumb it.In Exodus 21, God is presenting his law to his chosen nation - a theocracy. This nation was to be God's chosen people through which the savior would come. They had strict rules, and they were expected to live up to a higher standard. This should be expected from such a priveleged position. Does God not have the right to call for the death of his creation who rebelled against him in spite of his meciful route for salvation? In 2 Kings 2 we read a story of some youths who mock the prophet Elijah, and are then killed by his curse. The King James translation uses the word youth. Following to the root of the translation, we can conclude that this was talking about young adults. Baldness was regarded as a disgrace. It is unclear whether or not the youth are referring to a litteral baldness, loss of hair, or as an epihet of contempt. These individuals were taunting and insulting the prophet of God. To insult the prophet of God was to insult God himself. This would serve as an example that God is a God who is not to be mocked. In light of this, the punishment for such a course of action is entirely justified.Abraham was commanded to kill his son in Genesis 22:2. In Genesis 17:21, however, we read this "But your son Isaac will be born about this time next year, and the promise I am making to you and your family will be for him and his descendants forever." Because of this promise, we know Isaac will not die before he has made descendants. Abraham most likely knew that if he actually went through with this sacrafice one of two things would happen. God could have let Isaac die, and thus God would have broken his promise and thus is not a trustworthy God worth worshipping. God also could have resurrected Isaac, showing God's power to Abraham. Either way, the outcome is important for Abraham to witness. God stopped Abraham before he did kill his son though, so I fail to see how this makes God bad. Even if God had let Abraham go through with it, because man turned on God, his only fault would be breaking his promise in Genesis 17. This does not teach murder is okay no matter who issues the command. God is incapable of murder since we have all rejected him and fallen from grace. Nobody else has authority over human life.Acts 3:23 tells us those who don't follow Jesus will be destroyed. Is not the creator of man fully justified in destroying those who rebelled against him? He has a standard of perfection, and cannot abide with those who cannot match this said standard.In Romans we read homosexuality is worthy of death. This is because homosexuality is a result of our fallen world of sin. It is a mockery of God's gift of sexuality to us. Is not the creator justified in destroying those who make a mockery of his perfect gifts, which were intended to be used for his glory, after they have turned from him and rejected him?You should be seeing a theme by now. We're all God's creation, and we all fail to meet his glory, his standard. We have all sinned against him and thus fail to meet his standard. Would a judge be just if he pardoned a criminal, with no reparation for his crime? No he would not. In the same way, would God be a just God if he let his creation run rampant, and turn against him? Who do you think you are to demand that the one who created you put up with your rebellion when he could effortlessly end you right now? It is by his boundless mercy and grace that we're still alive to have this conversation. It is by his boundless mercy and grace that he paid for our crimes against him. If we do not accept that payment, and show honest remorse for said crime, what obligation to us does he have?