public Object clone() { Map clone = null; try { clone = (Map) super.clone(); } catch(CloneNotSupportedException e) { System.err.println("Could not create a new instance of map!"); } clone.map = map.clone(); return clone; } // Map is the name of the class this method is in // map is an int[][] array