Source code here https://github.com/bernardjason/terrain

Click here to play terrain