That code works. Let's improve this by making the generated world more believable. Use advanced procedural techniques to generate the world. Include in the generated world the different kinds of terrain. Make sure not to limit ourselves to rectlinear areas. The generated world should include soft curvature where appropriate