Fix cave generating and slight refactoring
Refactoring
Revert "Refactoring"

This reverts commit 60b976cf8d7a268eead771c3df8c3ab85d74f751.
Delete cave level print for debugging