Implemented a function that can make edges go up or down to make islands or enclosing walls. Known issues: only works on square terrain right now.