public void read(String map) {
    	List<Pair> list = new ArrayList<Pair>();
    	File file = new File(map);
    	BufferedReader reader = null;
    	int counter = 0;
    	try {
    	    reader = new BufferedReader(new FileReader(file));
    	    String text = null;

    	    while ((text = reader.readLine()) != null) {
    	    	java.util.List<String> item2 = new ArrayList();
				item2 = Arrays.asList(text
						.split(" "));
				ArrayList array_tmp0 = new ArrayList();
				Pair pr = new Pair();
				pr.x = Integer.parseInt(item2.get(0));
				pr.y = Integer.parseInt(item2.get(1));
    	    	list.add(pr);
    	    	counter = counter +1;
    	    	grid[pr.x*size+pr.y].water = true;
    	    	grid[(size-pr.y)*size+pr.x].water = true;
    	    	grid[(100-pr.x)*size+(100-pr.y)].water = true;
    	    	grid[pr.y*size+100-pr.x].water = true;
    	    	//grid[(100-pr.x)*size+pr.y].water = true;
    	    	//grid[(100-pr.x)*size+100-pr.y].water = true;
    	    }
    	} catch (FileNotFoundException e) {
    	    e.printStackTrace();
    	} catch (IOException e) {
    	    e.printStackTrace();
    	} finally {
    	    try {
    	        if (reader != null) {
    	            reader.close();
    	        }
    	    } catch (IOException e) {
    	    }
    	}
    	//System.out.println(counter);
    }