private void loadMap(String filename) throws IOException {
		ArrayList lines = new ArrayList();
		int width = 0;
		int height = 0;
		
		BufferedReader reader = new BufferedReader(new FileReader(filename));
		while(true){
			String line = reader.readLine();
			if(line == null){
				reader.close();
				break;
			}
			if (!line.startsWith("!")){
				lines.add(line);
				width = Math.max(width, line.length());
			}
		}
		height = lines.size();
		
		for(int j = 0; j < 12; j++){
			String line = (String) lines.get(j);
			for(int i = 0; i < width; i++){
				
				if(i < line.length()){
					char ch = line.charAt(i);
					Tile t = new Tile(i, j, Character.getNumericValue(ch));
					tilearray.add(t);
				}
			}
		}
	}