Some fixes and stuffs

[SHORT-FIX] Fixed the Cave Generator's ability to freeze the game