Random caves and bug fixes