Format Cave.java