More work on cave generator.