So Genesis is just a big joke to you? I think God already explained how he did it.
Genesis is what it is. What it isn't is a science textbook. And nowhere in it does God say how He created the world --- I defy you to show me otherwise.
It's not a joke, it's one of many creation myths, translated, interpreted, edited down through the years.