public void readMap(){
		try {
			Scanner scan = new Scanner(new File(file));
			width = scan.nextInt();
			height = scan.nextInt();
			
			tiles = new Tile[height][width];
			
			int temp;
			
			for(int h = 0; h < height; h++){
				for(int w = 0; w < width; w++){
					temp = scan.nextInt();
					
					if(temp == 2){
						tiles[h][w] = new Floor(w*Tile.TILE_WIDTH, h*Tile.TILE_HEIGHT);
						character   = new Character(w*Tile.TILE_WIDTH, h*Tile.TILE_HEIGHT);
					}
					else{
						tiles[h][w] = getTileType(temp, w, h);
					}
				}
			}
			
			scan.close();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		
	}