static Location moveThroughEdge(Pixel inputPixel, WritableRaster imageRaster,
			EdgeType edgeType){
		Location locationOnEdge = findEdge(inputPixel, imageRaster, edgeType);
		int x=0, y=0;
		switch (edgeType) {
		case TOP: {
			x = 0;
			y = -1;
		}
		case BOTTOM: {
			x = 0;
			y = 1;
		}
		case LEFT: {
			x = -1;
			y = 0;
		}
		case RIGHT: {
			x = 1;
			y = 0;
		}
		}
		Location locationThroughEdge = new Location(locationOnEdge.getPositionX()+(x*edgeOffset), locationOnEdge.getPositionY()+(y*edgeOffset));
		return locationThroughEdge;
		
	}