public boolean saveTileInfo(){
		try{
			fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
			int returnVal = fc.showOpenDialog(this);

	        if(returnVal == JFileChooser.APPROVE_OPTION) {
	            File file = fc.getSelectedFile();
				FileOutputStream x = new FileOutputStream(file.getAbsolutePath());
				
				int allocateLength = 0;
				allocateLength += Integer.SIZE; //Length
				int[] tileInfo = tilePanel.getTileInfo();
				allocateLength += (tileInfo.length * Integer.SIZE);
				
				
				System.out.println("Length: " + tileInfo.length);
				
				ByteBuffer  bb = ByteBuffer.allocate(allocateLength); 
				bb.order(ByteOrder.BIG_ENDIAN); 
				
				bb.putInt(tileInfo.length);
				
				for(int i = 0; i < tileInfo.length; i++){
					bb.putInt(tileInfo[i]);
				}
				
				bb.flip();
				
				x.write(bb.array());
				
			    return true; 
	       	}
		}
		
		catch(FileNotFoundException e)
		{
			System.out.println("File Not Found");
			return false;
		}
		
		catch(IOException e)
		{
			System.out.println("IO Exception");
			return false;
		}
		
		catch(Exception e)
		{
			System.out.println("Exception");
			e.getCause();
			e.printStackTrace();
			JOptionPane.showMessageDialog(this, "" + e.getMessage() , "Error!",  JOptionPane.ERROR_MESSAGE);

			return false;
		}
				
		return false;
	}