general code clean up. added randomized tile selection to the caves