Fixed debug function, made some loop stuff clearer in cave functions - minor fixes
Cave should be good to go, lemme know if it doesn't work

swag