public ArrayList<Coordinate> getPath(int toy, int tox) {
		ArrayList<Coordinate> l = new ArrayList<Coordinate>();
		if(toy > y){
			for(int i = y+1; i < toy; ++i)
				l.add(new Coordinate(i,x));
		}else if(toy < y){
			for(int i = toy+1; i < y; ++i)
				l.add(new Coordinate(i,x));
		}else if(tox > x){
			for(int i = x+1; i < tox; ++i)
				l.add(new Coordinate(y,i));
		}else if(tox < x){
			for(int i = tox+1; i < x; ++i)
				l.add(new Coordinate(y,i));
		}
		return l;
	}