public int[] sensed_cell(int[] p, int direction, Direction sense_dir){
		int[] x = new int[2];
		switch(sense_dir){
		case HERE: x = p;
		break;
		case AHEAD: x = adjacent_cell(p, direction);
		break;
		case LEFTAHEAD: x = adjacent_cell(p, Turn(LeftRight.LEFT, direction));
		break;
		case RIGHTAHEAD: x = adjacent_cell(p, Turn(LeftRight.RIGHT, direction));
		break;
		}
		return x;
	}