debugged cave generator. it works now \o/
now we just need some suitable cave textures...