Genesis 6:5 "Then the LORD saw that the wickedness of man was great in the land, and that every intent of the thoughts of his heart was only evil continually."<quoted text>
since it says of those in the days of noah "their thoughts were continually wicked before the Lord and violence filled the land", i would say that the moral of the flood story is: repent of your evil thoughts towards God and of your violence towards one and other.
"as it was in the days of noah, so shall it be in the end" Jesus
This seems to imply that God can't see the future, don't you think? According to Genesis, God could not predict what humans would become ahead of time, say, before he created them. Furthermore, the flood didn't fix the problem, did it? Otherwise, there would have been no need for Jesus, would there? So it seems like God doesn't know what he's doing. And when God does try and "fix" the situation, does God do it in a loving way? Only if you consider global genocide and being tortured and left to die of exposure "loving".