public void readMap(InputStream is){
		try{
			
			//read map file
			
			br = new BufferedReader(new InputStreamReader(is));
			mapWidth = Integer.parseInt(br.readLine()); //first line of map file
			setMapWidth(mapWidth);
			//System.out.println(mapWidth);
		    mapHeight = Integer.parseInt(br.readLine()); //second line of map file
		    setMapHeight(mapHeight);
		    //System.out.println(mapHeight);
		    levelMap = new int[mapHeight][mapWidth];	//Array for holding map data
		   

		        for(int i = 0; i < mapHeight; i++) {
		            String line = br.readLine();
		          //  System.out.println(line);
		            String[] tileValues = line.split("\\s+");
		            for(int j = 0; j < mapWidth; j++){
		                levelMap[i][j] = Integer.parseInt(tileValues[j]); //hold map data
		               //actualMap[i][j] = tileMap[levelMap[i][j]];
		               //System.out.println(levelMap[i][j]);
		               
		            }
		        }
		        
		       
		        is.close();
		        
		       
			}catch(Exception e){
				e.printStackTrace();
			}
	}