Why Did A Good God Create Gunpowder & Allow Us to Discover It?

Justin Brierley, producer of the Unbelievable? program, just solved the problem of evil. Not really, but he tries unsuccessfully to make a point about it and free will: 
My comments to Justin Brierley:
Justin, anyone can turn a bullet into something good, and anyone can imagine on hindsight that some kind of suffering turns out for good. But an omniscient god is apparently incapable of imagining a world without suffering of the horrendous kind, when even a child can do so. What about a god who never allows humankind to discover gunpowder? What was so important to god that we needed it at all?
Yes, gunpowder has been extremely helpful to modernized society. But was the bloodshed and mayhem worth it when all god wants is for us to believe in him? Think of the murders, the bombs, and the wars, especially the noncombatants like children. The carnage is massive!
If for some indefensible notion god wanted us to discover gunpower, he could have made it discoverable to people who would only use it constructively in building roads, bridges, buildings and the like. He could also keep it away from evil people intent on evil purposes. 
A perfectly loving god would do this. Does an omniscient all-powerful god not know how to do it?

Thank you for reading and for your support! We think you'll find a perspective here that you don't usually find elsewhere. Never miss out on future posts by becoming a follower. To make a donation of any size please click here. If you buy anything on Amazon [US] through this link it provides a kickback at no cost to you. Thanks again!