Flavius, you should read all of the OT to see why God did what He did then; and you should read the NT to see what God has done and is doing in this age. Let me suggest you first believe the Creator-God of the universe knows what He is doing and is doing all things very well. He wants us to learn and then get into conformity to Him and His eternal knowledge and wisdom ---who is omniscient, omnipotent, and omnipresent. When one humbles himself before God and reads the history from creation and up to this day, all things will become clear.
Man is born in sin and so is self-indulgent and wants to go his own way. God in mercy gives man trials and allows the evil to continue to humble man to surrender his stubborn ways, and bow to God. He made us to be His children and wants us to learn to love and obey Him, and He will preserve forever those who receive Him through His "...beloved Son" --the Lord Jesus, the Christ of God.
See salvation in the Gospels, and learn of mercy, grace, and love of God in all the New Testament we have. I recommend you begin with a reading in John's gospel, and when and if you believe and trust God's Word, you will open the door of grace and begin to learn much as a true believer. God wants to teach us His pathway to blessings now and for eternity, and Satan (called the evil god of this world) wants us to turn from God and follow his own heart and desires. Man has much to learn, and should never challenge or doubt God. He has given us His immutable Word for our understanding of as much as He wants us to know. Look up always! Write me anytime if you are a humble and sincere seeker after God and His way.