  Initially, one may be tempted to solve this problem by viewing God's perfect goodness (which includes his absolute moral perfection) as analogous to our goodness. A morally good person may actually do the very best action available to her while being free not to do it, or free to do something bad instead. Of course, had she freely done the bad thing, she would have exhibited some sort of moral failing. But the mere fact that she was free to have done the bad thing doesn't impugn whatever degree of moral goodness she possesses. So why should God's perfect goodness preclude his being free to create a less good world, or even a bad world? Had he done that, he would have ceased being the morally perfect being he is, just as the morally good person would have diminished somewhat her moral goodness had she freely done the wrong thing.