Old code is not bounds checking cave[][] access ... sigh.